Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. The Log For the Database is Not Available

The Log For the Database is Not Available

Scheduled Pinned Locked Moved Database
databasehelpsql-serversysadmintutorial
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Prakash S 0
    wrote on last edited by
    #1

    This error occurs frequently and no insert query is running. if i restart the sql server services it is working fine,but often getting this error message. Recently i changed my management studio to 2012 as my server is 2008 R2 version.How to fix this issue permanently?

    A Kornfeld Eliyahu PeterK 2 Replies Last reply
    0
    • P Prakash S 0

      This error occurs frequently and no insert query is running. if i restart the sql server services it is working fine,but often getting this error message. Recently i changed my management studio to 2012 as my server is 2008 R2 version.How to fix this issue permanently?

      A Offline
      A Offline
      Andrius Leonavicius
      wrote on last edited by
      #2

      Hi, Usually it's because there are corruption problems related to the storage system. Have you tried running DBCC CHECKDB against the database?

      DBCC CHECKDB ('Your DB Name') WITH NO_INFOMSGS;
      GO

      This could give you more information. Also, check the Auto Close property:

      SELECT DATABASEPROPERTY ('Your DB Name', 'IsAutoClose');
      GO

      If it returns 1 (Auto Close is on), then that may be the reason of your problem...

      Regards, Andrius Leonavicius

      P 1 Reply Last reply
      0
      • P Prakash S 0

        This error occurs frequently and no insert query is running. if i restart the sql server services it is working fine,but often getting this error message. Recently i changed my management studio to 2012 as my server is 2008 R2 version.How to fix this issue permanently?

        Kornfeld Eliyahu PeterK Offline
        Kornfeld Eliyahu PeterK Offline
        Kornfeld Eliyahu Peter
        wrote on last edited by
        #3

        The Log For the Database is Not Available[^] And please, do not post your question all over the place...

        I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)

        "It never ceases to amaze me that a spacecraft launched in 1977 can be fixed remotely from Earth." ― Brian Cox

        1 Reply Last reply
        0
        • A Andrius Leonavicius

          Hi, Usually it's because there are corruption problems related to the storage system. Have you tried running DBCC CHECKDB against the database?

          DBCC CHECKDB ('Your DB Name') WITH NO_INFOMSGS;
          GO

          This could give you more information. Also, check the Auto Close property:

          SELECT DATABASEPROPERTY ('Your DB Name', 'IsAutoClose');
          GO

          If it returns 1 (Auto Close is on), then that may be the reason of your problem...

          Regards, Andrius Leonavicius

          P Offline
          P Offline
          Prakash S 0
          wrote on last edited by
          #4

          Dear Sir, It shows the following error Msg 1823, Level 16, State 2, Line 1 A database snapshot cannot be created because it failed to start. Msg 7928, Level 16, State 1, Line 1 The database snapshot for online checks could not be created. Either the reason is given in a previous error or one of the underlying volumes does not support sparse files or alternate streams. Attempting to get exclusive access to run checks offline. my database shows is_auto_close_on=1. What i should do to solve this?

          A 1 Reply Last reply
          0
          • P Prakash S 0

            Dear Sir, It shows the following error Msg 1823, Level 16, State 2, Line 1 A database snapshot cannot be created because it failed to start. Msg 7928, Level 16, State 1, Line 1 The database snapshot for online checks could not be created. Either the reason is given in a previous error or one of the underlying volumes does not support sparse files or alternate streams. Attempting to get exclusive access to run checks offline. my database shows is_auto_close_on=1. What i should do to solve this?

            A Offline
            A Offline
            Andrius Leonavicius
            wrote on last edited by
            #5

            I'd recommend to turn off the Auto Close:

            ALTER DATABASE database_name
            SET AUTO_CLOSE OFF;
            GO

            Speaking about errors, try to restart the server and run DBCC CHECKDB again. Also, take a look at Windows Event Logs for errors. BTW, do you have enough disk space?

            Regards, Andrius Leonavicius

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups