SUSPECT DATABASE

EXEC sp_resetstatus 'DBname';
ALTER DATABASE DBname SET EMERGENCY
DBCC checkdb('DBname')
ALTER DATABASE DBname SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB ('DBname', REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE DBname SET MULTI_USER
ALTER DATABASE DBname SET SINGLE_USER
DBCC CheckDB ('DBname', REPAIR_REBUILD)
ALTER DATABASE yourDBname SET MULTI_USER

No comments:

Post a Comment