We had a scenario in our US office where the Sql server was abruptly stopped due to power outage.
This has caused the database to go on SUSPECT Mode.
To get the database back on line the following sql scripts can be used.
The below script is used to check the database.
DBCC CHECKDB ('ManufacturingTulsa') WITH NO_INFOMSGS,
ALL_ERRORMSGS
The below script is used bring the database on line.
EXEC sp_resetstatus 'ManufacturingTulsa';
ALTER DATABASE ManufacturingTulsa SET EMERGENCY
DBCC checkdb('ManufacturingTulsa')
ALTER DATABASE ManufacturingTulsa SET SINGLE_USER WITH ROLLBACK IMMEDIATE
DBCC CheckDB ('ManufacturingTulsa', REPAIR_ALLOW_DATA_LOSS)
ALTER DATABASE ManufacturingTulsa SET MULTI_USER
the problem of data corruption in the files of specified format can be fixed by the how can i read destroyed mdf files utility
ReplyDelete