rollback4sqlserver reads your transaction log and generates the exact inverse SQL to undo any INSERT, UPDATE, or DELETE — in seconds.
-- ⚠ REVIEW CAREFULLY BEFORE EXECUTING
BEGIN TRANSACTION;
-- LSN 0000002C:0000029D DELETE → INSERT (undo)
INSERT INTO [dbo].[Orders]
([OrderID], [CustomerName], [Amount])
VALUES (2, N'Bob', 275.50);
-- LSN 0000002C:00000297 UPDATE → UPDATE (undo)
UPDATE [dbo].[Orders]
SET [Amount] = 150.00
WHERE [OrderID] = 1;
-- COMMIT TRANSACTION; ← uncomment after review
-- ROLLBACK TRANSACTION; ← or rollback if unsure
The Problem
UPDATE.SQL Server has no built-in "undo button" for committed transactions. Traditional recovery means restoring a full backup — hours of downtime. We fix that.
Features
Agent runs locally on your Windows server. Browser connects to localhost:8182. Your transaction data never leaves your infrastructure.
Automatically generates the exact rollback SQL for every committed change: INSERT → DELETE, DELETE → INSERT, UPDATE → UPDATE with before-image values.
Polls fn_dblog every 5 seconds. New events appear in real time. Zero impact on SQL Server — pure SELECT, no DML/DDL.
Select multiple events, click Generate. Get a complete BEGIN TRANSACTION script with all inverse operations in correct reverse-LSN order.
Single .exe with embedded DuckDB. No SQL Server components, no .NET runtime, no service installation required. Just run it.
Filter by database, schema, table, operation type, time range, and full-text search. Point-in-time recovery for any window in your log history.
How It Works
Download logrecovery.exe and run it with your SQL Server credentials. It connects read-only — no changes made to your database.
Navigate to rollback4sqlserver.dbaops.io from any browser on the same machine. The UI connects directly to the local agent — your data stays local.
Filter events by table, time range, or operation. Select the rows to undo. Click Generate Rollback Script — review the SQL, then execute in SSMS or your preferred tool.
Architecture
The cloud hosts only the UI shell — a static HTML page. All SQL Server access happens locally on your machine via the agent process.
Free and open source. Single exe. Works with any SQL Server 2016+.