Quick Answer
Deleted data in the SIMPLE recovery model comes back through a rollback, a backup restore or a scan of the MDF file. Microsoft states this model has no log backups and frees the log after a checkpoint. In our test fn_dblog returned 3 delete records right after a DELETE and none after a CHECKPOINT. Query the log before the next checkpoint or scan a copy of the MDF file.
You executed a DELETE on a database in the SIMPLE recovery model and the rows are gone. Your options depend on one fact, how soon the next checkpoint arrives.
This guide shows what the log stores after a DELETE in SIMPLE and FULL recovery, a decode of the rows from our test and three ways to bring the rows back.
What Does the Log Retain After a DELETE in SIMPLE Recovery?
Microsoft states the SIMPLE model has no log backups and reclaims log space automatically. Log truncation happens after a checkpoint in this model. In FULL recovery the truncation waits for a log backup.
We deleted 3 of 5 rows in a SIMPLE database and in a FULL database. Then we counted the delete records in fn_dblog, an undocumented function.
| What we tested | Result on our test instance |
|---|---|
| SIMPLE recovery, count right after the DELETE | 3 LOP_DELETE_ROWS records. Column log_reuse_wait_desc showed NOTHING |
| SIMPLE recovery, count after CHECKPOINT | 0 records |
| SIMPLE recovery, count after 20,000 more inserts and a CHECKPOINT | 0 records |
| FULL recovery, count after CHECKPOINT | 3 records |
| FULL recovery, count after a log backup and a CHECKPOINT | 0 records |
| Rows decoded from the 3 records | 1 alpha, 2 bravo and 3 charlie |
The log stores the deleted rows until the next truncation in both models. SIMPLE recovery truncates at the checkpoint and FULL recovery waits for a log backup.
Heads Up
A checkpoint can arrive at any time. You cannot predict how long the records last. Stop the work on the database and query the log at once.
Which Path Fits Your Delete?
| Your situation | What it means | What to do |
|---|---|---|
| The DELETE sits inside a transaction you did not commit | The rollback still undoes it | Use Method #1 |
| The DELETE is committed and you can still query the log | The log stores the deleted rows | Use Method #2 now |
| A full backup exists | You can restore a copy and copy the rows back | Restore under a new name, then use INSERT with SELECT |
| No backup and the checkpoint has passed | Only the MDF file can still contain the rows | Use Method #3 on a copy of the file |
What Do You Need Before You Query the Log?
System Specifications
| Component | Requirement |
|---|---|
| Disk space | Free space equal to the MDF size for a copy of the file |
| Access | A login that can query the database and insert rows into the table |
| PC for the recovery software | Windows up to Windows 10 with 512 MB of RAM and 50 MB of free disk space |
Software Specifications
| Item | Requirement |
|---|---|
| Recovery model | SIMPLE or FULL. Our tests used both |
| Log function | fn_dblog, an undocumented function |
| Recovery software | Lists SQL Server 2019 and earlier |
| Tested on | SQL Server 2022 (RTM CU26) Express on Linux |
How Do You Recover Deleted Data in SIMPLE Recovery Model?
Method #1: Roll Back the Open Transaction (Free, Only Before COMMIT)
Use this method when you started a transaction before the DELETE. ROLLBACK undoes every statement of the open transaction.
BEGIN TRAN;
DELETE FROM dbo.t WHERE id <= 3;
SELECT @@ROWCOUNT;
ROLLBACK;
Check the row count before you decide. Any COMMIT or autocommit statement ends this path.
Method #2: Decode the Deleted Rows From the Log (Free, Before the Next Checkpoint)
Use this method when the DELETE is committed and no checkpoint has truncated the log. Our query copies the delete records of one table into a new table and decodes an INT and a VARCHAR from the row bytes.
SELECT CAST(CAST(REVERSE(SUBSTRING([RowLog Contents 0], 5, 4)) AS BINARY(4)) AS INT) AS id,
CAST(SUBSTRING([RowLog Contents 0], 16, DATALENGTH([RowLog Contents 0]) - 15) AS VARCHAR(20)) AS name
INTO dbo.recovered
FROM fn_dblog(NULL, NULL)
WHERE Operation = N'LOP_DELETE_ROWS' AND AllocUnitName LIKE N'dbo.t.%';
Our query returned 3 rows with the values 1 alpha, 2 bravo and 3 charlie. We inserted them back with INSERT dbo.t SELECT id, name FROM dbo.recovered and the table held 5 rows again.
Offsets fit our table of an INT followed by a VARCHAR. Byte 5 starts the INT and byte 16 starts the text. Other tables use other offsets. Rows with NULL values, more columns or large objects need a different decode. Test the query on a copy of the database first.
Our guide to finding who deleted records in SQL Server shows more log queries.
Method #3: Scan the MDF File With SQL Recovery Utility (Paid, No Backup Needed)
Use this method when the checkpoint has passed and no backup exists. SQL Recovery Utility opens the MDF file without a live SQL Server and previews the items it finds.
- Stop the application and copy the MDF file to a safe folder.
- Click Open and select the .mdf file copy.
- Select Advanced Scan, choose the SQL Server version and tick the option to preview deleted objects.
- Check the preview for the table and its deleted records.
- Select SQL Server Database, enter the login details and select a new or an existing database.
- Select With schema and data and click Export.



SQL Recovery Utility
Scan an MDF file and export recovered tables and records.
Heads Up
Freed space returns to SQL Server for reuse. Every new write lowers your chances. Stop the writes first and scan the copy only.
How Do You Protect Your Data From the Next Delete?
- Move critical databases to FULL recovery. Log backups let you restore to a point in time. Our guide on SQL Server point in time restore lists the steps.
- Delete inside a transaction. Check @@ROWCOUNT before you COMMIT.
- Execute a SELECT first. Use the same WHERE clause and compare the count.
- Take a full backup before a large cleanup. Our guide on a broken log backup chain shows how a gap stops a restore.
What Do People Ask About Deleted Data in SIMPLE Recovery?
Can You Recover Deleted Data in SQL Server SIMPLE Recovery Model?
Yes, in 3 cases. Rollback works before COMMIT, a backup restore works when a backup exists and a log query works before the next checkpoint. After that a scan of the MDF file is the remaining path.
Does SIMPLE Recovery Store Deleted Rows in the Log?
Yes, until the next checkpoint. Our fn_dblog query returned 3 delete records right after the DELETE and 0 after the CHECKPOINT.
Does a Log Backup Remove Deleted Rows From the Log?
In FULL recovery yes. Our count stayed at 3 after a CHECKPOINT and fell to 0 after a log backup and a CHECKPOINT.
Can You Restore a SIMPLE Database to a Point in Time?
No. Microsoft’s recovery model table lists no point in time restore for the SIMPLE model because it has no log backups.
About this guide
We checked this guide against Microsoft documentation on 4 Dec 2026. We executed the fn_dblog counts, the row decode and the insert back on SQL Server 2022 (RTM CU26) Express on Linux.
Microsoft documents the models on its recovery models page and the truncation rules in the transaction log architecture guide.
