ITeye博客

SQL Server2005 "可疑数据库" 修复

Cash · 2011-08-30 11:55 · IT · 数据库 · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。