Quantcast
Channel: Making Life Simple » SQL Server
Viewing all articles
Browse latest Browse all 2

SQL Server 2008 R2 (Suspect) mode – how to repair?

$
0
0

Run the following SQL statements to fix the issue:


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

 

Please see here for more details.

It worked for my database and I was able to repair successfully.


Viewing all articles
Browse latest Browse all 2

Trending Articles