March 6, 2013 at 11:43 am
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
March 6, 2013 at 11:53 am
So what is happening on the server? have you checked the SQL Server and Windows log files?
March 6, 2013 at 12:01 pm
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
March 7, 2013 at 12:39 am
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
March 7, 2013 at 2:01 am
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
March 7, 2013 at 4:00 am
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
March 7, 2013 at 5:41 am
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.
March 7, 2013 at 8:32 am
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
March 7, 2013 at 8:36 am
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.
March 7, 2013 at 10:02 am
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