标签:置疑数据修复
若在sql server2008上数据实体发生置疑的情况,可用以下方法修复:
alter database dbName set emergency
go
alter database dbNameset single_user with rollback immediate
go
use dbName
go
dbcc checkdb
go
use master
go
alter database dbNameRebuild Log on
(name=dbName_log,filename=‘D:\DataEntry\dbName_log.ldf‘)
go
select * from sys.databases
go
dbcc checkdb(‘dbName‘, repair_allow_data_loss)
go
sp_dboption ‘dbName‘,‘single user‘,‘false‘
本文出自 “yjkarmon” 博客,请务必保留此出处http://261402.blog.51cto.com/251402/1626053
标签:置疑数据修复
原文地址:http://261402.blog.51cto.com/251402/1626053