Quick Answer
Recover a dropped table in SQL Server with a point in time restore. Your database needs the FULL recovery model and a log backup that covers the drop. You get 3 ways. Roll back the DROP TABLE when the transaction is still open. Restore a copy of the database with STOPAT and copy the table across. Scan the MDF file with recovery software when no backup exists. Our test found no delete record for the table rows in the log so the log alone cannot return the data. Copy your database files before you act.
Dropping the wrong table takes one second and the fix takes much longer. SQL Server removes the table at once and no undo button exists after the commit.
This guide shows what the transaction log records after a DROP TABLE, which of the 3 fixes fits your backups and the exact statements you need. We executed the T-SQL on a real database and the results sit next to the steps.
Which Fix Fits Your Situation?
| What you have | What it means | What to do |
|---|---|---|
| DROP TABLE inside an open transaction | Nothing is committed yet | Use Method #1 |
| FULL recovery model, a full backup and log backups through the drop | Microsoft documents a point in time restore for this setup | Use Method #2 |
SIMPLE recovery model |
Microsoft’s point in time page covers only the full and bulk logged models | Restore the last full backup to a copy or use Method #3 |
| No backup | The log shows when the table dropped and has no row level delete record | Use Method #3 |
Our recovery models and backup types guide explains how the model limits your options.
What does DROP TABLE Write to the Transaction Log?
We dropped a table of 1,000 rows in a FULL recovery database and read the log with fn_dblog right after.
| What we looked at | Result on our test database |
|---|---|
| Transaction named DROPOBJ | 1 transaction with its own begin and commit record |
| LOP_DELETE_ROWS records inside DROPOBJ | 24 records with the context LCX_MARK_AS_GHOST |
| Delete records for the 1,000 table rows | None. 24 records cannot cover 1,000 rows |
| LOP_INSERT_ROWS records in all other transactions | 1,032 records from the original inserts |
Microsoft states a table of 128 extents or more uses a deferred drop. SQL Server marks the allocation units first and removes the pages later in the background. Our table was small so large tables can show a different pattern.
The log still shows when the drop happened. Read the time before your next log backup because after a log backup SQL Server can reuse log space.
SELECT [Begin Time], [Transaction ID], [Transaction Name]
FROM sys.fn_dblog(NULL, NULL)
WHERE [Transaction Name] = N'DROPOBJ';
Our test returned the begin time 2026-12-01 06:41:50.243. You use that time as your STOPAT target in Method #2.
Heads Up
Microsoft does not document fn_dblog. Execute it on a copy of your database or on a test server first.
System and Software Specifications for Dropped Table Recovery
System Specifications
| Component | Requirement |
|---|---|
| Server permission | Microsoft states you need CREATE DATABASE to restore into a new database. We executed every test as sysadmin |
| Disk space | Free space for one log backup and a second copy of the database |
| Backups | A full backup from before the drop and every log backup after it |
| 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 |
|---|---|
| Point in time restore | FULL or bulk logged recovery model. Microsoft lists no edition limit on that page. We tested on SQL Server 2022 (RTM CU26) Express on Linux |
| DROP TABLE permission | ALTER on the schema, CONTROL on the table or the db_ddladmin role |
| Recovery software | Lists SQL Server 2019 and earlier |
How do You Recover a Dropped Table in SQL Server?
Method #1: Roll Back the DROP TABLE (Free, Only Before Commit)
Use this method when you dropped the table inside an explicit transaction and have not committed yet. A single DROP TABLE in auto commit mode commits at once so it leaves nothing to roll back.
BEGIN TRAN;
DROP TABLE dbo.Orders;
-- stop here and check
ROLLBACK;
Our test executed this sequence. OBJECT_ID returned NULL inside the transaction and the table came back with its 3 rows after the ROLLBACK.
Method #2: Restore a Copy With STOPAT (Free, Needs Log Backups)
Use this method when you have a full backup and log backups through the drop. Restore the backups into a new database that stops just before the drop. Your live database remains untouched.
- Read the begin time of the DROPOBJ transaction with the query above.
- Take a log backup so the drop sits inside a backup file.
- Restore the full backup under a new name with NORECOVERY.
- Restore every log backup in order. Use the same STOPAT time in every RESTORE LOG statement and finish with RECOVERY.
BACKUP LOG YourDB TO DISK = N'D:\Backups\YourDB_after_drop.trn';
RESTORE DATABASE YourDB_Copy FROM DISK = N'D:\Backups\YourDB_full.bak'
WITH NORECOVERY,
MOVE N'YourDB' TO N'D:\Data\YourDB_Copy.mdf',
MOVE N'YourDB_log' TO N'D:\Data\YourDB_Copy.ldf';
RESTORE LOG YourDB_Copy FROM DISK = N'D:\Backups\YourDB_log1.trn' WITH NORECOVERY;
RESTORE LOG YourDB_Copy FROM DISK = N'D:\Backups\YourDB_after_drop.trn'
WITH STOPAT = '2026-12-01 06:41:50.200', RECOVERY;
Our test used a STOPAT time 20 milliseconds before the DROPOBJ begin time. The copy came online and returned all 1,001 rows of the dropped table.
Microsoft states the recovery point is the latest commit at or before your STOPAT time. A log backup that stops short of that time leaves the database in the restoring state.
Copy the table into your live database when the check passes.
SELECT * INTO YourDB.dbo.Orders FROM YourDB_Copy.dbo.Orders;
SELECT INTO copies columns and rows. Script the indexes and constraints from the copy and apply them to the live table.
Our SQL Server point in time restore guide covers the restore sequence in more detail. Open tail log backup when your live database is damaged as well.
Method #3: Scan the MDF File With SQL Recovery Utility (Paid, No Backup Needed)
Use this method when you have no backup or your log backups stop before the drop. SQL Recovery Utility opens the MDF file without a live SQL Server and previews the items it finds. The software recovers deleted tables, stored procedures, functions, views and indexes along with deleted records and shows deleted records in red.
- Click Open and select the .mdf file of the database.
- Select Advanced Scan, choose the SQL Server version and tick the option to preview deleted objects.
- Check the preview for your dropped table.
- 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
Scan a copy of the MDF file and work on the copy only. Store the original elsewhere untouched until you check the exported table.
How do You Protect Tables From an Accidental Drop?
- Take log backups in FULL recovery. Method #2 works only when a log backup covers the drop.
- Test a restore on a copy. Our test needed MOVE for both files and the copy came online first try.
- Limit the db_ddladmin role. Microsoft lists it as one of 3 ways to get DROP TABLE rights.
- Wrap risky changes in a transaction. Check the result before you COMMIT and use Method #1 when the result looks wrong.
FAQs
Can You Recover a Dropped Table Without a Backup?
Yes, with a scan of the MDF file. The log gives you the drop time and no row level delete record so the log alone cannot return the rows. Method #3 reads the pages left in the MDF file.
Does DROP TABLE Write a Delete Record for Every Row?
No for our test table. The DROPOBJ transaction held 24 delete records for a table of 1,000 rows. Large tables use a deferred drop according to Microsoft.
How Do You Find When a Table Was Dropped?
Query fn_dblog for the transaction named DROPOBJ and read its begin time. Do it before the next log backup.
Can You Restore a Single Table From a Backup?
SQL Server restores complete databases. Restore a copy with STOPAT and copy the table across as Method #2 shows.
Does a SIMPLE Recovery Database Work With STOPAT?
No. Microsoft states the point in time restore page applies only to the full and bulk logged models. Restore the last full backup to a copy and check if your table sits in it.
About this guide
We checked this guide against Microsoft documentation on 1 Dec 2026. We executed the DROP, ROLLBACK, BACKUP LOG and RESTORE statements of Methods #1 and #2 on SQL Server 2022 (RTM CU26) Express on Linux.
Microsoft documents the drop behavior on its DROP TABLE page and the restore sequence on its point in time restore page.
