Ever get a SQL Server 2008 database stuck in SINGLE_USER_MODE, then find you can’t maintenance it, access it, and even SP_WHO2 fails?
Maybe you dropped it into SINGLE_USER_MODE to perform a DBCC CHECKDB type of repair, then tried to access it again and voila…you’re not the only one in the database. This could happen in a number of scenarios, but a typical one in a SharePoint environment is the SEARCH database.
Sure, you can stop the service but it might spool up again while you’re performing some cleanup. Sound familiar.
The icing on the cake is that you can’t even query SP_WHO or SP_WHO2 to determine which SPID to kill. The horror!
Following are the steps you can take to:
- Determine the SPID you need to kill
- Quickly set the Database in question back into MULTI USER MODE
Step by Step:
- Use the MASTER DB (because you can’t access the db in question)
- Determine which nasty SPID(s) need to be killed
- Kill them
- Change your DB to MULTI USER mode



