Database getting into recovery mode

  • Database getting into recovery mode is every morning.

    “When I hear somebody sigh, ‘Life is hard,’ I am always tempted to ask, ‘Compared to what?’” - Sydney Harris

  • So what is happening on the server? have you checked the SQL Server and Windows log files?

  • Why is SQL being restarted every morning?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • SQL server only getting back online from recovery after restart(to correct issue)...it's not being restarted.

    “When I hear somebody sigh, ‘Life is hard,’ I am always tempted to ask, ‘Compared to what?’” - Sydney Harris

  • There are two reasons why a database goes into the recovering state. SQL is restarted or the database is being closed and reopened (offline, autoclose, etc).

    Check the logs, ensure that SQL is not being restarted, that the DBs don't have autoclose on, that there's nothing taking them offline.

    btw, restarting SQL is not a fix for a DB in the recovering state, it's a cause. Restarting SQL when you have a database in the recovering state means it'll take longer to come online, not less time.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • I need to be corrected here,I have databases that will be recovering but as soon as I restart they regain online state after spending after hours in recovering.I have been using restarting sql server as the solution.

    “When I hear somebody sigh, ‘Life is hard,’ I am always tempted to ask, ‘Compared to what?’” - Sydney Harris

  • kapfundestanley (3/7/2013)


    I need to be corrected here,I have databases that will be recovering but as soon as I restart they regain online state after spending after hours in recovering.I have been using restarting sql server as the solution.

    Solution to what, you haven't told us what the problem is.

  • The problem is the database is an recovery state(and it is inaccessible).

    “When I hear somebody sigh, ‘Life is hard,’ I am always tempted to ask, ‘Compared to what?’” - Sydney Harris

  • kapfundestanley (3/7/2013)


    The problem is the database is an recovery state(and it is inaccessible).

    That means something happened on the server resulting in SQL Server restarting. You need to find out what caused SQL Server to restart. Start looking through the SQL Server and Windows log files.

  • Look at the SQL Server Logs from within SQl Server Agent's Error Logs. Also review the system and application logs within event viewer. Something is causing SQL Server to restart. You should be able to discover a reason behind it in these logs.

    If this is happening at the same time every day, that should point to a pattern which generally are much easier to troubleshoot. Let us know what you find...

Viewing 10 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic. Login to reply