在sql查询编辑器里执行上面的语句,可恢复到正常状态,本人亲测可行。(SQLServer 2005)
使用时把 MyDB 改为你自己的数据库名。
USE MASTER
GOSP_CONFIGURE 'ALLOW UPDATES',1 RECONFIGURE WITH OVERRIDE
GO
UPDATE sysdatabases SET status = 32768 where name = 'MyDB'
GO
ALTER DATABASE MyDB SET SINGLE_USER
GO
DBCC CHECKDB('MyDB','REPAIR_ALLOW_DATA_LOSS')
GO
update sysdatabases set status= 0 where name='MyDB'
GO
sp_configure 'allow updates', 0 reconfigure with override
GO
ALTER DATABASE MyDB SET MULTI_USER
GO