Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Force Detach

Author  Topic 

mimei
Starting Member

3 Posts

Posted - 2005-09-15 : 07:13:37
Hi

I need to detach a Database, but with "EXEC sp_detach_db 'test','false'" I can't do this because it is in use.
Is there a Possibility to make a "force detach" or something?

Thanks for Help

Greets

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2005-09-15 : 07:25:22
run this to put the db into a single user mode
alter database myDB set single_user with rollback immediate
then you can detach it

Go with the flow & have fun! Else fight the flow
Go to Top of Page
   

- Advertisement -