SQL Log Analyzer Univik SQL Log Analyzer

Forensic Analysis of the SQL Server Transaction Log

The Univik SQL Server log analyzer reads a .ldf transaction log without SQL Server and turns it into a court-ready forensic report. It shows what changed, on which table, in what order, with evidence hashes that prove the file was not touched.

Excellent 4.8 TrustRating (128 Verified Reviews)
SQL Server transaction log forensic report showing case details, evidence hashes and visual analysis

 What the Analyzer Reads

LSN Operation (LOP) Table Name Page and Slot Transaction Time Schema Changes Evidence Hashes

 A Look Inside

See the Analyzer at Work

Point the SQL Server transaction log analyzer at an .ldf and it reads the log read only, then lays out every recovered operation for review.

Univik SQL Log Analyzer opening a SQL Server .ldf transaction log for read-only analysis

Open an .ldf read only to start the analysis

Reviewing recovered log operations with table, page and time in the SQL Log Analyzer

Review, sort and filter every operation by table, page or time

A Read-Only Evidence Chain

Every step is built to keep the source file trustworthy, from the first hash to the final report. The workflow follows the four-phase forensic process described in NIST SP 800-86: collection, examination, analysis and reporting.

The read-only evidence chain from log to report Every step keeps the source file trustworthy 1. Open read only 2. Hash SHA-256 + MD5 tamper check 3. Decode log records 4. Resolve paired MDF 5. Report HTML to PDF

 Key Features

SQL Log Analyzer Features

Everything you need to read a transaction log for an investigation, from evidence hashes to a report you can hand over.

Read without SQL Server

Read the Log Without SQL Server

Open a SQL Server .ldf straight from disk and read it read only. No instance, no attach and no undocumented functions to run. The log format is decoded on any Windows computer, even one that never had SQL Server.

Recover records

Recover Transaction Records

Each change is recovered as a record with its log sequence number, operation, table, page, slot and time, plus data fragments where the log preserves them. A single log can hold tens of thousands of records, each read in full.

Operation breakdown

Operation Breakdown

Every log operation is counted by its type, from LOP_INSERT_ROWS and LOP_MODIFY_ROW to LOP_DELETE_ROWS. A plain-English meaning sits next to each code, so the mix of inserts, updates and deletes is clear at a glance.

Activity by table

Activity by Table

See inserts, updates and deletes counted per table, with the most changed tables ranked. A concentrated burst of deletes on one table is exactly what an investigation wants to find fast.

Schema changes

Detect Schema Changes

Changes to the object catalog are flagged as data definition events. A dropped object stands out here, which matters because a table is sometimes removed to hide what happened to its rows.

Evidence integrity

Evidence Integrity

Before anything is read, the .ldf and its paired MDF are hashed with SHA-256 and MD5. Re-hash the file later and the values must match, which shows the evidence was never altered. The source is only ever opened read only.

Visual analysis

Visual Analysis

Charts place the activity in time. An activity timeline marks the largest delete burst. An operation mix shows the split of inserts, updates and deletes. A bar chart ranks the most changed tables.

Pairs with MDF

Pairs With the MDF

It finds the matching MDF beside the log, even a corrupt or detached one, then correlates each change with the real table it changed. The report also reads the database origin, its version, collation and compatibility level, plus the allocation map that shows where deleted rows may still sit.

 Simple Steps

How the Analysis Works

Four steps take you from a raw .ldf to a report you can attach to a case.

Open

1. Open the Log

Open the .ldf read only. It is hashed with SHA-256 and MD5 before anything is read.

Decode

2. Decode the Log

Records are read at the binary level and identified by their signatures.

Resolve

3. Resolve Tables

The paired MDF maps each change to its real table name and origin.

Export

4. Export the Report

Save the HTML forensic report and print it to PDF for a case file.

The manual way vs the analyzer. Inside SQL Server you can read the log with the undocumented fn_dblog function, but it needs a live instance and returns raw records that are hard to read. The analyzer reads the same log from the file with no SQL Server, then decodes and reports it.

 The Forensic Report

What the Report Includes

The report is a single HTML file you can print to PDF. It reads as a full examination record, section by section.

Forensic report page one: case and examination details, evidence hashes, log summary and visual analysis charts

Case details, evidence hashes and the visual analysis charts

Case and Examination Details

Evidence file name, full path and size, the examination time in UTC and the read-only method used, so the report opens like a proper case record.

Evidence Integrity

SHA-256 and MD5 hashes of both the .ldf and the paired MDF, taken before analysis. Re-hashing must reproduce them, which proves the file was not changed.

Log File Summary

The log state, whether the header page is valid, how much of the log is active and the total count of transaction records recovered.

Database Origin

Read from the paired MDF boot page: database name, the SQL Server version that created it and last wrote it, compatibility level, collation and the secondary NDF references.

Data File Allocation Map

The page free space map from the MDF, which flags unallocated pages. Those pages are the main place where deleted rows can still be found.

Visual Analysis

An activity timeline that marks the largest delete burst, an operation mix chart and a ranking of the most changed tables.

A deleted row stays on the page as a ghost until cleanup Where a deleted row still lives Row 1001 Row 1002 Row 1003 deleted (ghost) Row 1004 free live row deleted, still readable free space

A deleted row is flagged as a ghost and its space is reused later. Until cleanup runs, the analyzer can still read it.

Forensic report page two: virtual log file structure, activity by table and the operation breakdown

The virtual log file map, activity by table and the operation breakdown

Log Structure (VLFs)

The virtual log files that make up the .ldf, each with its offset, size, active sector count and whether it is still active or already cleared.

Activity by Table

A table listing inserts, updates and deletes per object, so the tables that saw the most change stand out immediately.

Schema Changes (DDL)

Entries logged as changes to the object catalog, such as an object created or dropped. A dropped object can point to a table removed to hide activity.

Operation Breakdown

Each LOP operation with its meaning and count, from inserted and modified rows to deleted rows and transaction boundaries.

Recovered Transaction Records

The detailed list: log sequence number, operation, table, page, slot, time and any data the record preserved. Values are decoded with the right data type and collation, so dates, unique identifiers and international text read correctly. That covers advanced types like datetime2, datetimeoffset, sql_variant, hierarchyid, geometry and geography.

Change Sequence by Page

Pages changed several times, in log order. Reading down a page shows the sequence, such as a row deleted and its slot later reused.

Forensic report page three: recovered transaction records with LSN, operation, table, page and slot

Recovered transaction records with LSN, operation, table, page and slot

Method and Limitations, stated plainly

The report ends with how the analysis was done and what it cannot promise. The log was read at the binary level and hashed before analysis. Table names are resolved by matching each record against the paired MDF catalog. The internal log-record body format is undocumented and changes between versions, so full before and after values are not always available. And because SQL Server writes to the log before the data file, a committed change can reach the log before it reaches the table; the analyzer reads both, so that gap is not mistaken for missing data. Being honest about this is what makes the report hold up.

 Deleted Data

Recover Deleted Records

The transaction log is often the first place a deleted row shows up. The analyzer finds the delete, then carves the row from the pages that still hold it.

1. Spot the delete

Every LOP_DELETE_ROWS operation is listed with its table, page and time, so you see exactly what was removed and when.

2. Carve the row

The allocation map flags unallocated pages where a ghost row can still be carved, which is where a recent delete usually sits.

3. Rebuild it

The analyzer reports the delete. To bring the row back into a working table, hand the database to SQL Database Recovery.

Recover Deleted Data

New to transaction logs? A SQL Server .ldf records every change before it reaches the data file, in write-ahead order, across virtual log files. For the full picture read the SQL LDF File Guide.

 Accuracy

Accuracy You Can Check Yourself

Transaction log analysis is only as good as the data behind it. Every result the analyzer produces can be traced back and verified.

Read only and hash-verified

The .ldf and its paired MDF are hashed with SHA-256 and MD5 before analysis and opened read only. Re-hash the file later and the values must match, so nothing is taken on faith.

Checked against known databases

The binary reader is regression tested against ground-truth SQL Server databases, where the recovered output is matched against the live source record by record.

Limits stated in every report

The report ends with its method and what it cannot promise. The log-record body format is undocumented and changes between versions, so data fragments are reported only where the log preserves them.

How we tested it

Records are identified by their fixed-length signatures and confirmed by the operation byte, then table names are resolved against the paired MDF catalog. To check that end to end, we ran controlled tests across several clean SQL Server environments:

  • Set up SQL Server on several virtual machines, each running a different version, including SQL Server 2000, 2022 and 2025. On each we loaded a 1,000-record sample database that mixed many data types, from a SQL script.
  • Ran a series of delete-record and drop-table operations against them, keeping our own log of every change.
  • Read the resulting .ldf with the analyzer and compared its output against that log.

Every deletion and dropped table we made was surfaced and matched to the right table on each version. When we recovered the deleted rows, the analyzer returned 1,000 of 1,000 records, with the values and timestamps lining up exactly against our record. On a larger examination the same reader recovered 20,131 records from a 3.38 MB log.

Truncated sample SQL script used in the recovery test sample-data.sql -- 1,000 rows, mixed data types CREATE TABLE SalesOrders ( OrderID INT PRIMARY KEY, OrderGUID UNIQUEIDENTIFIER, CustomerName NVARCHAR(100), Amount DECIMAL(12,2), OrderDate DATETIME2(3), IsShipped BIT, Notes VARCHAR(MAX) ); INSERT INTO SalesOrders VALUES (1, NEWID(), N'Ravi Sharma', 4999.50, '2026-05-14 14:22:07', 1, 'Priority'), (2, NEWID(), N'Zoë Müller', 120.00, '2026-05-14 15:03:41', 0, NULL), -- ... 998 more rows ... DELETE FROM SalesOrders; -- removed all 1,000 rows

A truncated sample of the SQL script we used, mixing many data types before the rows were deleted

 Use Cases

When to Use the Log Analyzer

Wherever a change to a database needs to be explained and proven.

Financial fraud investigation

Financial-Fraud Investigation

When the numbers in a table do not add up, trace each change back to the transaction behind it to see how the data was altered.

Incident response

Incident Response

After a suspected breach, data leak or insider action, read the log read only and keep the evidence hashes for the record.

Compliance and audit

Compliance and Audit

Produce a record of database activity for an auditor or an e-discovery request, backed by charts and a per-table breakdown.

Casework

Law-Enforcement Casework

Work fully offline on a seized file, with read-only handling and hashes suited to a chain of custody.

Disputes

Data-Change Disputes

Show exactly when a value changed and in what order, to settle a dispute over what happened to the data.

Root cause

DBA Root-Cause

Trace a bad change that put a table in a strange state back to the operation and transaction that caused it.

 Which Tool Do I Need?

Log Analyzer vs LDF Viewer

The free viewer is for a quick read. The analyzer is for an investigation you can defend.

TaskLog AnalyzerLDF Viewer
Read the log without SQL ServerYesYes
Browse operations in a gridYesYes
Forensic HTML reportYesNo
Evidence hashes (SHA-256 and MD5)YesNo
Activity charts and delete-burst detectionYesNo
Activity by table and operation breakdownYesNo
Schema change detectionYesNo
Pair with the MDF for table names and originYesNo
Export to CSV, SQL script or live SQL ServerYesCSV only
PriceFrom $99Free

Free SQL LDF Viewer SQL Database Recovery

 Technical Details

Analyzer Specifications

System Requirements

Operating SystemWindows 11, 10, Server 2016 and later
Processor1 GHz or faster
RAM4 GB recommended
Disk Space100 MB for installation
.NET Framework4.8 or higher

Software Information

Version6.7 (Latest)
File Size15.6 MB
LicenseFrom $99
SupportEmail & Live Chat
Tested OnSQL Server 2000 to 2025

Supported Capabilities

SQL Server Versions

  • SQL Server 2025, 2022, 2019
  • SQL Server 2017, 2016, 2014, 2012
  • SQL Server 2008 R2, 2005, 2000

Analysis

  • Read only, source never changed
  • SHA-256 and MD5 hashing
  • MDF pairing for table names
  • Activity charts and timeline
  • Types: datetime2, datetimeoffset, sql_variant, hierarchyid, geometry, geography
  • Collation-aware text (Latin, Cyrillic, CJK)

Output

  • HTML forensic report
  • Print to PDF from any browser
  • Records export to CSV
  • SQL script or live SQL Server via the engine
  • Offline, no internet required

 Customer Reviews

What Users Say About Us
RN

Rahul N.

Digital Forensic Examiner

"The evidence hashes and read-only handling are what I needed. I could examine a seized .ldf offline and produce a report that stood up to review."

EM

Elena M.

Incident Responder

"The activity timeline pointed me straight at the delete burst. Pairing the MDF gave me the real table names, which saved a lot of guesswork."

DS

David S.

Database Administrator

"I used the change sequence by page to see a row deleted and its slot reused. That level of detail settled a dispute we had been going back and forth on."

 Help & Support

Common Questions

Yes. The .ldf is opened read only and is never changed. Both the log and its paired MDF are hashed with SHA-256 and MD5 before analysis, so you can prove the evidence was not altered.

No. The analyzer reads the .ldf as a file on any Windows computer, with no SQL Server, no attach and no instance running.

Case and evidence details, file hashes, a log summary, database origin from the paired MDF, activity charts, the virtual log file map, activity by table, schema changes, an operation breakdown and the recovered transaction records.

It shows what changed, on which table and page, in what order and when. The transaction log records the operations, not the login behind them, so the analyzer reports the change itself rather than a user name.

No, the .ldf can be read on its own. Pairing the matching MDF adds the real table names, the database origin and the map of pages where deleted rows may still sit.

Yes. It reports delete operations and schema changes such as a dropped object. It also points to unallocated pages where deleted rows can still live. Rebuilding the rows themselves is a job for SQL Database Recovery.

Transaction logs from SQL Server 2000 through 2025 are read from the file. The version that created the database is read from the paired MDF boot page.

Yes. The report is an HTML file you can open in any browser and print to PDF, which makes it easy to attach to a case file or share.

The free LDF Viewer is for a quick read of the log operations. The Log Analyzer adds the forensic report, evidence hashes, activity charts and MDF pairing for investigation and casework.

Two ways work. Inside SQL Server the undocumented fn_dblog function reads it. Or open the .ldf with a reader like Univik, which decodes the file directly with no SQL Server and lays out each operation with its table and time.

Read the transaction log. It records every insert, update and delete in order. The analyzer turns those records into a readable report of what changed, on which table and when.

The free demo opens your .ldf and previews the full analysis, so you can see every recovered operation before paying. Exports are limited to 10 records per table. The full version removes that limit.

Yes. The workflow maps to the four-phase forensic process in NIST SP 800-86, the Guide to Integrating Forensic Techniques into Incident Response. The file is collected read only with its integrity preserved by hashing, examined at the binary level, analyzed against the paired MDF and reported with the method and its limits stated.

Turn a Transaction Log Into Evidence

Read your .ldf read only and build a forensic report you can print, hand over and defend.

Download Now Talk to the Team

Just need a quick read of the log?

The free SQL LDF Viewer opens a transaction log and lists its operations. New to the format? Start with the SQL LDF File Guide. To rebuild deleted rows from the database itself, use SQL Database Recovery.

 Related Products

Explore More Univik Tools

SQL LDF Viewer

SQL LDF Viewer

Open a SQL Server transaction log and read its operations by LSN, table and transaction, free.

Learn More
SQL Database Recovery

SQL Database Recovery

Repair corrupt MDF files and bring back deleted records and dropped tables from a damaged database.

Learn More
SQL LDF File Guide

SQL LDF File Guide

Learn what a SQL Server .ldf transaction log is, what sits inside it and how it records every change.

Learn More