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.
-
16.03.2026
Duplicate barcodes and names: how to find, merge and fix them so as not to break the accounting
How to find, merge and fix duplicate products in Torgsoft to avoid errors in balances, reporting and inventory
-
27.02.2026
Directory errors: causes of failures and financial losses
Errors in Torgsoft directories: barcode in quantity, zero cost, duplicates, fiscal failures and database slowdowns
-
03.02.2026
Password recovery for "Owner" or sa user
Guide to restoring Torgsoft access (sa user). Reset password via SQL Management Studio, osql command line, or contact technical support for assistance.









Go back to the previous step