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 2005 Forums
 SQL Server Administration (2005)
 restoremode

Author  Topic 

DBA007
Posting Yak Master

145 Posts

Posted - 2010-10-26 : 10:48:55
how to delete a db which is in restoring state,this is not part of mirroring

Peter99
Constraint Violating Yak Guru

498 Posts

Posted - 2010-10-26 : 15:33:46
why you are deleting db?
you should have valid backup if you need to restore.

If you don't need that db then use this command:

restore database <db name> with recovery
go
drop database <db name>
go
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-10-26 : 18:06:37
You don't need to recover it. You can just delete it.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Peter99
Constraint Violating Yak Guru

498 Posts

Posted - 2010-10-26 : 18:32:19
Yes, Tara is right, thanks for clarification.
Go to Top of Page
   

- Advertisement -