Ano-Tech Computers
Enter keyword:

SQL Server: Offline database takes forever, hangs
Problem:
When trying to take a database offline, the database hangs in "transition mode".
 
Solution:
Try "alter database set restricted_user with rollback immediate" before setting it offline. This will terminiate user connections and rollback their transactions and only allow priviledged users to connect.

Then close the dialog and exit Server Management Studio. Restart it, and the database should be offline.

 
Discuss this solution
Did this article solve your problem? Yes No Did not apply

We welcome anyone who is willing to contribute to this public knowledge base, contact siteadmin@atc.no if you have information you would like to share. The idea is not to replace the commercial support sites, but to publish those hard-to-find solutions you've found yourself looking for over and over again.

Show all articles