SQL出现了“置疑”情况,杂办?
出现“置疑”情况的原因一般是什么呢?有什么办法挽救呢?
--数据库置疑状态脚本
USE MASTER
GO
SP_CONFIGURE 'ALLOW UPDATES',1 RECONFIGURE WITH OVERRIDE
GO
UPDATE SYSDATABASES SET STATUS =32768 WHERE NAME='Bookmanagement'
Go
sp_dboption 'Bookmanagement', 'single user', 'true'
Go
DBCC CHECKDB('Bookmanagement')
Go
update sysdatabases set status =28 where name='Bookmanagement'
Go
sp_configure 'allow updates', 0 reconfigure with override
Go
sp_dboption 'Bookmanagement', 'single user', 'false'
Go
看看这有没效果