Day 15: Error – Database is in transition

When you alter the database to “OFFLINE” and other transactions are happening on that database the database will be in transition and will require the transition Session to complete, or we may have to kill that session. Database OFFLINE state requires “Exclusive Lock” on the database.

So always use “With Rollback Immediate”

 Alter Database <DB> Set Offline With Rollback Immediate;

http://social.msdn.microsoft.com/Forums/en-US/sqlgetstarted/thread/e779230a-87bc-4cee-b223-98a029097dc1/

http://www.sqlservercentral.com/blogs/sqldownsouth/archive/2009/08/12/database-is-in-transition.aspx

http://msdn.microsoft.com/en-us/library/aa275464(SQL.80).aspx

 

Advertisements
This entry was posted in Troubleshooting and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s