置疑数据库修复方法

EXEC sp_resetstatus 'DBname';
ALTER DATABASE DBname SET EMERGENCY
DBCC checkdb('DBname')
ALTER DATABASE DBname SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB ('DBname', REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE DBname SET MULTI_USER

参考:
http://www.codeproject.com/KB/reporting-services/SQL_2005_Suspect_Database.aspx

作者: nzperfect   发布时间: 2011-06-16