<!-- Canonical page: https://reversedwithai.com/p/sql-server-stats-stream-binary-format-decoded-claude -->
Canonical page: https://reversedwithai.com/p/sql-server-stats-stream-binary-format-decoded-claude

# Decoding the undocumented SQL Server STATS_STREAM binary format with Claude

> A tool that decodes statistics objects byte by byte.

SQLStatsXRay decodes the undocumented binary that DBCC SHOW_STATISTICS WITH STATS_STREAM returns. All 9 commits carry Claude Opus 5.5 trailers.

## Key facts

- Target: SQL Server STATS_STREAM binary
- Category: File formats
- Platform: SQL Server
- Models: Claude Opus 5.5
- Tools: SQL Server, DBCC SHOW_STATISTICS
- Outcome: Works
- Checks: Source available: yes; Repro steps: not reported; Real hardware: not reported; Verified by others: not reported
- Author: mcflyamorim
- Added: 2026-11-16
- Updated: 2026-11-16
- Sources reviewed: 2026-11-16 (automated reviewer)

## What was done

The tool shows everything SQL Server keeps for a statistics object by decoding the binary stream returned by DBCC SHOW_STATISTICS with STATS_STREAM.

### How it was done

All 9 commits are co-authored by Claude Opus 5.5. The README describes the format as undocumented and decoded completely.

### Results

The repository has 19 files and no Microsoft binaries.

## What the commit history shows

9 of 9 commits in the public repository credit an AI, over 2 days between 2026-11-02 and 2026-11-03. Credited: Claude Opus 5.5 (9).

Measured by this site from public git history.

## Sources

- [Repository](https://github.com/mcflyamorim/SQLStatsXRay)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: mcflyamorim (2026). Decoding the undocumented SQL Server STATS_STREAM binary format with Claude. Reversed with AI. https://reversedwithai.com/p/sql-server-stats-stream-binary-format-decoded-claude
