我的一个客户,上周六因为突然停电,来电后重起机器发现数据库出了毛病: 在企业管理器中看到,数据库成了

具体解决方法:

这种情况我见过,很可能数据是找不回来了,所以最好使用备份来恢复,如果你想试试的话,可以试试我这种方法:
sp_configure 'allow updates',1
go
reconfigure with override
go
use master
update sysdatabases set status =-32768 where name='yourdbname'
go
sp_configure 'allow updates',0
go
reconfigure with override
然后重新进入SQLEM看看,这时你的库就应变成紧急状态了,看看这时候能否读出数据了,如果能读出的话基本上就可以修复.

Published At
Categories with 数据库类
Tagged with
comments powered by Disqus