August 14, 2015 at 10:17 am
I have a database In Recovery.
Where do I check the completion status of the recovery?
August 14, 2015 at 10:26 am
Chris.Hubbard4U (8/14/2015)
I have a database In Recovery.Where do I check the completion status of the recovery?
Quick thought, query sys.dm_exec_requests and check for command='RECOVERY'
😎
August 14, 2015 at 11:08 am
I found the completion status.
In the error log it states that it is 99% recovered but it is hung.
How do I get myself out of this situation?
August 14, 2015 at 11:17 am
I can't even Drop the 2 Test Databases that are stuck at recovery.
How can I get rid of them?
August 14, 2015 at 11:22 am
What is really weird is that I can Select from a Table but it is in recovery mode.
That does not make sense?
August 14, 2015 at 11:24 am
Eirikur Eiriksson (8/14/2015)
Chris.Hubbard4U (8/14/2015)
I have a database In Recovery.Where do I check the completion status of the recovery?
Quick thought, query sys.dm_exec_requests and check for command='RECOVERY'
😎
I queried that table but it did not return any results.
August 14, 2015 at 11:45 am
Chris.Hubbard4U (8/14/2015)
Eirikur Eiriksson (8/14/2015)
Chris.Hubbard4U (8/14/2015)
I have a database In Recovery.Where do I check the completion status of the recovery?
Quick thought, query sys.dm_exec_requests and check for command='RECOVERY'
😎
I queried that table but it did not return any results.
You can force the database out of the restore mode by running RESTORE DATABASE [DBNAME] WITH RECOVERY;
😎
August 14, 2015 at 11:49 am
It finally recovered.:-)
August 14, 2015 at 12:08 pm
Chris.Hubbard4U (8/14/2015)
It finally recovered.:-)
Good stuff and have a great weekend:-)
😎
August 14, 2015 at 2:57 pm
Thanks! 🙂
August 14, 2015 at 4:13 pm
Eirikur Eiriksson (8/14/2015)
Chris.Hubbard4U (8/14/2015)
Eirikur Eiriksson (8/14/2015)
Chris.Hubbard4U (8/14/2015)
I have a database In Recovery.Where do I check the completion status of the recovery?
Quick thought, query sys.dm_exec_requests and check for command='RECOVERY'
😎
I queried that table but it did not return any results.
You can force the database out of the restore mode by running
RESTORE DATABASE [DBNAME] WITH RECOVERY;
😎
That's for when a database is in the RESTORING state due to a backup or restore run WITH NORECOVERY, not the RECOVERING state. Very different things.
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
August 14, 2015 at 4:26 pm
GilaMonster (8/14/2015)
Eirikur Eiriksson (8/14/2015)
Chris.Hubbard4U (8/14/2015)
Eirikur Eiriksson (8/14/2015)
Chris.Hubbard4U (8/14/2015)
I have a database In Recovery.Where do I check the completion status of the recovery?
Quick thought, query sys.dm_exec_requests and check for command='RECOVERY'
😎
I queried that table but it did not return any results.
You can force the database out of the restore mode by running
RESTORE DATABASE [DBNAME] WITH RECOVERY;
😎
That's for when a database is in the RESTORING state due to a backup or restore run WITH NORECOVERY, not the RECOVERING state. Very different things.
Thanks (again) Gail, somehow I misread the post, slightly embarrassing.
😎
August 14, 2015 at 4:30 pm
Chris.Hubbard4U (8/14/2015)
It finally recovered.:-)
Yup, and about all you can do with a long recovery process is wait. There are no commands which can force a database out of recovery, and restarting SQL would just make the recovery process start over from scratch.
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
Viewing 13 posts - 1 through 12 (of 12 total)
You must be logged in to reply to this topic. Login to reply