Exporting tables from a SQL Server backup (.bak) to Parquet without restoring it...
HN Best 200 @best
Exporting tables from a SQL Server backup (.bak) to Parquet without restoring it blog.arpe.io · 16 points · 3 comments · HN thread
TL;DR FastBCP 1.6 can read a single table directly from a SQL Server full backup (.bak) and write it to Parquet, with no restore and no SQL Server instance. The author reports a cold open of 2 min 29 s on a 320 GB striped production backup, then 29.6 s for a 175-million-row table with 24 threads, and pairs it with FastTransfer to load the files into any SQL Server version or PostgreSQL.
- Reads the .bak file as plain binary, locates the table's pages and decodes values straight into Apache Arrow columns written to Parquet.
- Supports SQL Server 2017 to 2025 full and copy-only backups, striped backups, and MS_XPRESS or ZSTD compression; differential and log backups are not applied.
- TDE databases and encrypted backups are refused, and Intel QuickAssist compression is unsupported.
- First open of a backup is cached (2 min 29 s cold, 0.3 s warm on the 320 GB backup), so later table exports from the same file start quickly.
- Benchmarks on a laptop with TPC-H SF10 show backup exports running about 2 to 2.4 times faster than live adbc_mssql reads, with no load on the server.
- Memory grows with threads on columnstore tables (26 to 44 GB peak at 24 threads in 1.6.3); version 1.6.5 reportedly bounds it, reaching 5.9 GB on a wide columnstore table.
Discussion The thread is short and mostly appreciative. Commenters react to the idea of pulling a single table out of a backup without a restore, with one praising SQL Server's backup tooling and another enthusiastic about Parquet as a format. The original author, Romain Ferraton, posted a detailed summary with numbers and the list of supported and unsupported features, and offered to answer questions about the backup format internals. No one raised substantive objections in the comments.
- Restore-free table extraction from backups is genuinely useful (many): Commenters see value in getting one table out of a backup quickly, without the disk and time cost of a full restore. One called it miraculous that a table can be found in minutes.
- Parquet is a major improvement for analysis workflows (some): One commenter says Parquet changed how they work, especially paired with DuckDB for analysis that used to be done with pandas.
- Praise for SQL Server tooling (some): A commenter says they love Microsoft SQL Server and wishes this capability had existed decades ago.