
In short
- SUSPECT means SQL Server could not finish the recovery of the database at startup.
- First save the MDF, NDF and LDF files and the error log, with the service stopped.
- REPAIR_ALLOW_DATA_LOSS removes damaged pages and the records in them.
What SUSPECT means
When SQL Server starts, it replays the transaction log of each database to bring it to a consistent state. If this fails, because a page is damaged, the log is missing or a file cannot be opened, the database is marked SUSPECT or RECOVERY_PENDING. It is not deleted, but no one can use it.
Common causes
- The disk or RAID below the database has read errors.
- The server lost power, and the write cache of the controller was not protected.
- The disk holding the log file was full.
- An antivirus program or a backup tool locked the database files.
Safe first steps
- Read the SQL Server error log and the Windows event log. The exact error number and the page ID tell a lot.
- Stop the SQL Server service.
- Copy the MDF, NDF and LDF files to another disk. Without this copy, every later step is a gamble.
- Check the health of the disks or the array.
- Look for the most recent full backup and the log backups after it. A restore from backup is often the cleanest way.
Why the repair command is the last resort
DBCC CHECKDB with REPAIR_ALLOW_DATA_LOSS removes pages it cannot repair, and with them the rows they hold. It also breaks links between tables. For an ERP database, this can mean invoices without lines, or bookings without an account. Microsoft itself describes it as the last option, after a restore. If you have no usable backup, have the files examined before you run it.
Data protection
Databases often contain customer or patient data. If the cause was an attack or the data could have reached third parties, check your obligations under Article 33 of the GDPR. The lab works under a data processing agreement and does not keep copies after the job.
In the lab
The files are copied, and if needed the disks below them first. The lab reads the database pages directly, without SQL Server, checks each one, and rebuilds tables from the readable pages. Records from damaged pages can often be taken from the log file or from older page versions. The result is a database you can attach again, with a report on what was missing.
More on servers: server data recovery. If the database ran on a virtual machine: virtual machines data recovery.
Frequently asked questions
Can I set the database to EMERGENCY mode myself?
You can, and it lets you read some data. Do it only on a copy of the files, not on the original.
Does the software vendor need to be involved?
It helps. They know the structure of their tables and can check the result after the recovery.
Which SQL Server versions can be read?
All common versions from 2008 to 2022, and the Express edition used by many small business programs.
Official sources and useful links
- Microsoft Learn: Official Microsoft documentation: Windows Server, Storage Spaces, Hyper-V and SQL Server.
- General Data Protection Regulation (EU) 2016/679: Official text of the GDPR, including Art. 28 (processors), Art. 32 (security) and Art. 33 (breach notification).
Are these files business-critical?
Stop every repair attempt that writes to the disks. The lab diagnosis is free and you receive a fixed price before anything is done.





