数据库一直显示在还原的解决方法

--下面语句中的ABCD就是你要修改的数据库名称

USE MASTER

GO

SP_CONFIGURE 'ALLOW UPDATES',1

GO

RECONFIGURE WITH OVERRIDE

GO

update sysdatabases set status =32768 where name='ABCD'

Go

sp_dboption 'ABCD','single user','true'

Go

DBCC CHECKDB('ABCD')

Go

update sysdatabases set status =28

where name='ABCD'

Go

sp_configure 'allow updates', 0 reconfigure with override

Go

sp_dboption 'ABCD', 'single user', 'false'

Go