MS SqL2000 数据库置疑状态的解决方案详解
对数据库进行修复
sp_configure 'allow updates',1
reconfigure with override
update sysdatabases set status=32768 where name='CotBase12009'
sp_dboption 'CotBase12009','Single user','true'
dbcc checkdb('CotBase12009')
update sysdatabases set status=28 where name='CotBase12009'
sp_configure 'allow updates',0
reconfigure with override
sp_dboption 'CotBase12009','single user','False'
sql2000中MSDB数据库置疑状态的解决方法
问题:我的SQL Server 2000的MSDB数据库,因为不正常关机,造成了置疑状态,请问采用什么方法能够弥补?
解决方法一:你可以采用以下的代码进行修复:
USE MASTER
GO
SP_CONFIGURE 'ALLOW UPDATES',1
RECONFIGURE WITH OVERRIDE
Copyright © IT之家(Www.IT55.Com) Powered By 易网科技 备案号:豫ICP备07012916号
本站QQ群:6614136 / 4218001