How to take database out of emergency mode?

In SQL Server 2000

sp_configure ‘allow’ ,1
Reconfigure with override
Update sysdatabases set status = status&(~32768) where name = ‘SQLDBPool’
sp_configure ‘allow’, 0
Reconfigure with override

IN SQL Server 2005/2008

SET online

5 thoughts on “How to take database out of emergency mode?

  1. Subahan Munthamadugu

    the abow command is also not working i.e when i run the abow command then i got an error please give me another method

  2. Subahan Munthamadugu

    Hi jugal shah,

    when i run the “restore veryfionly from disk=’path'”
    then i got the folling error please give reson for that i.e why it will get that error message

    Msg 3201, Level 16, State 2, Line 1
    Cannot open backup device ‘E:\SQLLOG\SQL12\dhamodharan.ldfD’. Operating system error 2(The system cannot find the file specified.).
    Msg 3013, Level 16, State 1, Line 1
    VERIFY DATABASE is terminating abnormally.

    1. Jugal Shah Post author

      Check for the required permission, it seems you are verifying the transaction log file, restore verify only work with backup files only.


Thanks for the comment, will get back to you soon... Jugal Shah

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