Day 23: Detach database Errors

Day 23: Detached Errors

Microsoft recommend that you move databases by using the ALTER DATABASE planned relocation procedure, instead of using detach and attach. ALTER DATABASE (Transact-SQL). “

We cannot detached system databases:

Server: Msg 7940, Level 16, State 1, Line 1
System databases master, model, msdb, and tempdb cannot be detached.

To work on attached/detached msdb/model databases need to enable startup parameter “-c -m -T3608“

also you cannot detached the databases which are in used, and are configured for :



Log shipping

Database Snapshot

                Suspect database

To attach the database you should properly detach the database. And then re-attach on the same server or move the database files and re-attached on a different server.

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: Logo

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.