sql server 2008 数据库置疑的修复方法

USE MASTER
GO
SP_CONFIGURE 'ALLOW UPDATES',1 RECONFIGURE WITH OVERRIDE
GO
ALTER DATABASE worker SET EMERGENCY
GO
sp_dboption 'worker', 'single user', 'true'
GO
DBCC CHECKDB('worker','REPAIR_ALLOW_DATA_LOSS')
GO
ALTER DATABASE worker SET ONLINE
GO
sp_configure 'allow updates', 0 reconfigure with override
GO
sp_dboption 'worker', 'single user', 'false'
GO

你可能感兴趣的:(sql,数据库,server,user,database,Go)