You are here: Re: Delete or detach a Suspect database « MsSQL Server « IT news, forums, messages
Re: Delete or detach a Suspect database

Posted by rdraider on 09/21/07 01:22

No queries would work since this database did not exist in
Master.sysdatabases. Not sure why. Attempting to detach from Enterprise
Manager produced an error. Then I simply closed and reopened EM and it was
gone! Odd.



"Erland Sommarskog" <esquel@sommarskog.se> wrote in message
news:Xns99B1EF3C598D6Yazorman@127.0.0.1...
> rdraider (rdraider@sbcglobal.net) writes:
>> Everything I read about sp_resetstatus says you must restart SQL after.
>> Is there a way around that (don't want to shut down production). The
>> suspect db is just an empty db that is not needed. I need to create
>> another db with the same name.
>
> I may be missing something, but what about DROP DATABASE? I made a quick
> test on SQL 2000 where I created a database, stopped SQL Server, deleted
> the log file to make the database suspect, and restarted SQL Server.
> DROP DATABASE worked just fine.
>
>
> --
> Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
>
> Books Online for SQL Server 2005 at
> http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
> Books Online for SQL Server 2000 at
> http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация