How to place a Database in emergency mode.

  • HI,

    Please let me know how to take a suspect database in an emergency mode?

    Awaiting early reply.

  • Hi there,

    To place your database in emergency mode, use the following command:

    SP_CONFIGURE 'allow updates', 1

    RECONFIGURE WITH OVERRIDE

    GO

    UPDATE master..sysdatabases set status = -32768 WHERE name = 'pubs'

    GO

    SP_CONFIGURE 'allow updates', 0

    RECONFIGURE WITH OVERRIDE

    You can then BCP data out and place it into a different database

     

    Hope this helps...

    Ford Fairlane
    Rock and Roll Detective

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply