輸入以下命令執(zhí)行:
USE MASTER
GO
SP_CONFIGURE 'ALLOW UPDATES',1 RECONFIGURE WITH OVERRIDE
GO
UPDATE SYSDATABASES SET STATUS =32768 WHERE NAME='置疑的數(shù)據(jù)庫名'
Go
sp_dboption '置疑的數(shù)據(jù)庫名', 'single user', 'true'
Go
DBCC CHECKDB ('置疑的數(shù)據(jù)庫名', repair_allow_data_loss) with NO_INFOMSGS
Go
update sysdatabases set status =28 where name='置疑的數(shù)據(jù)庫名'
Go
sp_configure 'allow updates', 0 reconfigure with override
Go
sp_dboption '置疑的數(shù)據(jù)庫名', 'single user', 'false'
Go可能會(huì)有小部份數(shù)據(jù)丟失。若修復(fù)失敗建議掛載或恢復(fù)備份或使用其他備份數(shù)據(jù)恢復(fù)。