日期:2014-05-16  浏览次数:20446 次

SQL Server2005 "可疑数据库" 修复
NetPerfMon 为修复的数据名

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