Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error attempting to detach a db 1

Status
Not open for further replies.

daglugub37

Technical User
Oct 21, 2003
201
US
I got a db in ssuspect mode that I would like to detach\attach.

I get the following error when trying to detach.

---------------------------
Microsoft SQL-DMO (ODBC SQLState: 42000)
---------------------------
Error 947: Error while closing database 'test_db' cleanly.
---------------------------
OK
---------------------------

 
you can't detach a database that is in suspect mode.
You will need to change the status then detach it.

EXEC sp_resetstatus ''
Code:
[COLOR=blue]EXEC[/color] sp_resetstatus [COLOR=red]'Your Db'[/color]

- Paul [batman]
- If at first you don't succeed, find out if the loser gets anything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top