I found that database is in
Suspected Mode ......
How Can I Recover it from this Mode.
|
|
a. USE master GO sp_configure 'allow updates', 1 GO RECONFIGURE WITH OVERRIDE GO b. sp_resetstatus GO -- Example: sp_resetstatus ‘Washington’
a. sp_configure 'allow updates', 0 GO RECONFIGURE WITH OVERRIDE GO
a. USE master GO sp_configure 'allow updates', 1 GO RECONFIGURE WITH OVERRIDE GO b. UPDATE master..sysdatabases SET status = 32768 WHERE name = 'DatabaseName'
a. Create a new production DB, or a temp DB, to have a place to export whatever data we can out of the corrupt db. b. Start a DTS operation by going into EM and drilling down to “Data Transformation Services” … “Local Packages”. c. Open a NEW DTS package by right-mouse clicking … d. When DTS opens, choose “Copy SQL Server Objects Task” from the Connection Icons. Enter in a description like “Export Corrupt Data”. Enter in the SA/pass combination as well as the CORRUPT database from the drop-down. e. Select the “Destination” Tab. ”. Enter in the SA/pass combination as well as the PRODUCTION database from the drop-down. f. Select the “Copy” Tab. UNCHECK the “Create destination objects” box. UNCHECK the “Copy all objects” box and then Click on the “Select Objects” Button. This brings up the “Select Objects” screen. g. CHECK ONLY “Show all tables” like shown above. Then check each table that needs to be exported. If ALL tables need to be export, Click on the “Select All” button. Click OK. ** If ALL objects are to be recovered, Select ALL Objects by check marking them and then click on the “Select All” button. This will grab everything possible. h. Click OK again and we are done creating this task. Now we execute the package by Clicking the green arrow on the menu bar.
If Microsoft Tech support is to be called, it is advisable to get the log files ready to be emailed to the tech for review. The process to accomplish this is as follows:
|
|||
|
|
|
Go through the SQL Server Error logs to find out the reasons for the database to go in to SUSPECT mode.Based on the reasons why the database went into suspect mode, the next course of action can be decided. The easiest approach would be to restore from the good backups. |
|||
|
|
|
Sam, what version of SQL do you have? In 2005 and 2008 update on master database is not allowed anymore. In case you don't have a Full backup here is what you need to do: After you identified the problem in SQL Server Log, follow the intructions here and here depending which is your case. |
|||
|
|