Hideously Dangerous Techniques you wont find a KB article on (I)
Although I hope it does not happen in your practice, you may someday find yourself with a SQL Server database stuck in the 'recovering' state.
If it is a large database, say, a terabyte or so, recovery may take fifteen or sixteen hours.
This may be problematic to the ongoing operations that you are responsible for.
Here is an ugly, ugly hack that will let you bypass the recovery checks. It carries some risk. It is dependent on you having a good backup of the recovering database. It is dependent on you having a good backup of the recovering database.
This operation requires an instance stop.
1. Stop the impacted instance.
2. Rename the .mdf/.ldf/.ndf files for the database stuck in 'recovery.'
3. This will cause all sorts of unpleasantness. Expect it.
4. Start the instance. Note the database is now 'suspect.'
5. Restore your good backup to a different name.
6. Delete the suspect database.
7. Rename the restore to the correct name.
8. Conduct a forensics analysis of the process that led to the failure.
9. Write profligate emails of apology.
10. Avoid this process in the future.
This emerged in my own practice during a deployment, time-critical, of course. High-dollar consultants were sidelined while the operation was in progress. Developers were frustrated.
It was the result, of course, of hurrying and not thinking a large-scale ALTER COLUMN all the way through.
Here is a beautiful song to soothe your anxiety after reading about such hackwork.
If you botch this process, feel free to call Microsoft for support. You will enjoy their dry, unamused chuckles and inability to help you.



