SQL Server: Database status Suspect or Recovery Pending
The Suspect or Recovery Pending statuses mean that SQL Server cannot correctly open the database or complete its recovery. In this state, the Torgsoft software does not start or cannot work with data.
This material is intended for system administrators or users with hands-on experience working with Microsoft SQL Server and an understanding of the consequences of changes in the database structure. All actions are performed at your own risk: incorrect use of commands may result in data loss or an unusable database. Before performing any operations, you must create a full database backup, check available free disk space, and make sure there are no active connections to the database. If you are not confident in the correctness of the actions or their consequences — it is recommended to contact technical support.
Typical situations
-
after a sudden power outage,
-
after an emergency PC restart,
-
when there is not enough free disk space,
-
when database files or the disk are damaged.
How it manifests
-
the database in SSMS has the Suspect or Recovery Pending status,
-
Torgsoft does not start or freezes during startup,
-
a message appears saying it is impossible to connect to the database,
-
SQL Server does not bring the database to the Online state.
Causes
-
Not enough free disk space
SQL Server cannot complete transaction log recovery. -
SQL Server terminated unexpectedly
The database logical structure was damaged after power loss. -
Problems accessing database files
The folder was renamed, access permissions were changed, or antivirus is blocking the files. -
Physical HDD / SSD issues
Bad sectors or file system errors.
What to do
Step 1. Check the basics (required)
-
Check the free space on the disk where the database is stored (usually C:\).
-
there should be at least 5–10 GB of free space.
-
Check whether the SQL Server service is running (services.msc).
-
Restart the computer and wait until Windows fully loads.
-
Make sure the database folder has not been moved and is accessible.
Step 2. Try to bring the database out of the emergency state (via SSMS)
Performed only if SQL Server Management Studio is installed.
-
Connect to the server in SSMS,
-
Switch the database to EMERGENCY mode,
-
Run an integrity check with DBCC CHECKDB.
In SSMS, run the commands in order (replace TorgsoftDB with your database name):
-
Try to return the database to ONLINE mode.
Result:
-
if the database goes to Online — operation is restored,
-
if CHECKDB shows unrepairable errors — the database is corrupted.
Step 3. Restore from backup (the most reliable option)
If the database does not leave the Suspect / Recovery Pending status:
-
Find the most recent database archive:
-
locally: C:\DatabaseArchive\
-
or in C:\Torgsoft Log\
-
or in the folder where the archive was saved during the last manual creation
-
or in the cloud (if «Data Security» was enabled).
-
The file has the .mir or .mirz extension.
-
Perform:
-
«Database → Restore from archive» in Torgsoft
or -
restore via SSMS.
Verification after completion
-
the database has the Online status,
-
Torgsoft starts without errors,
-
directories, sales, and reports open,
-
there are no SQL error messages.
How to prevent recurrence
-
use a UPS for the PC that hosts the database,
-
ensure automatic archiving (locally or to the cloud),
-
constantly monitor database size (SQL Express limit — 10 GB),
-
do not allow the system disk to become full,
-
periodically check the condition of the HDD / SSD.
Key rule
If the database has the Suspect or Recovery Pending status and does not switch to Online —
restoring from a backup is the only guaranteed way to bring the system back to operation.
What to prepare for technical support
-
A screenshot or the exact database status text in SSMS.
-
Log files:
-
log_server.data
-
server_app_log.data.
-
The date of and availability of the latest archive.
-
The version of Torgsoft and SQL Server.
-
08.05.2026
Remaining balances do not match or the product is missing: how to find the reason through "Product Movement"
How to find the cause of discrepancies through "Goods Movement" in Torgsoft: missing goods, excess balances, document and warehouse errors
-
06.05.2026
Negative balances in the warehouse: why they appear and how to remove them systematically
How to find the reason for negative balances in Torgsoft, remove negatives in the warehouse, prohibit sales at a loss and correct the cost price
-
01.05.2026
Arithmetic overflow error - how to fix scanning barcode instead of price or quantity
Arithmetic overflow error in Torgsoft: why it occurs due to a barcode in the quantity or price field and how to find the problematic document









Go back to the previous step