How to Recover SQLServer Database from Suspect Mode
How to Recover SQLServer Database from Suspect Mode
Why SQL Database goes into Suspect Mode?
The database may go into suspect mode due to one or more of the following reasons:
- The system's hard disk where database is stored is out of space.
- The database file is corrupted or damaged.
- The primary file group of the database is corrupted or missing.
- The transaction log file is inaccessible or corrupted.
- MS SQL server shuts down or crashes in the middle of a transaction.
- The database is terminated unexpectedly.
- SQL is unable to complete a rollback or roll-forward operation.
Solutions to Recover SQL Database from Suspect Mode
Method 1: Restore Database from Backup
RESTORE DATABASE databasetest13 |
Method 2: Use DBCC CHECKDB Command to Repair the Database
It is suggested to create a backup of the SQL database before running this command.
--Turn off the suspect flag on the database and set it to EMERGENCY mode. |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.