|   | ![]() |
|
6.5 Disaster Recovery Plan 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 If the above procedure does not bring all of the databases back online, perform the following steps.
Corrupt User Database If a user database gets corrupted, you must apply the most recent backup. As an additional safety precaution you should drop the database using either the drop database command or the DBCC dbrepair command. You then recreate it from the script you should have that is generated by sp_help_revdatabase. This ensures that you are not carrying around anything from the corrupted database.
Suspect database A suspect database can occur for many reasons. In some cases SQL Server simply could not open the .dat file that contains the database or it simply gets lost and marks it suspect. In a few cases, the database actually corrupts to such a level that SQL Server can no longer access it. You must fix this by the following procedure.
6.5 Disaster Recovery Plan 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
All content on this site, except where noted, represents an original work of Michael R. Hotek and is protected by applicable copyright laws. The SQL Server FAQ is the sole work of Neil Pike. No page, portion of a page, or download may be used for commercial purposes in whole or in part without the express, written permission of the applicable author.