Local StudioDATABASE TOOLS

MDF Database Exporter

Use this local MDF exporter to recreate selected dbo tables in a new SQL Server 2025 MDF. Review exact column mappings and verified row counts before saving.

  • Free
  • Works Offline
  • No Uploads
Works with:
  • Microsoft Edge
  • Google Chrome
  • Mozilla Firefox
  • Safari
MDF Database Exporter with the Warehouse sample open, the Warehouse table selected, and its stored row preview.
The built-in Warehouse sample with an MDF export selection and the stored row preview.

How to Export Selected Tables

  1. Open the HTML, review Security Check, then select Continue.
  2. Choose a source MDF or select Open Sample. Use Add NDF Files if the selected tables require companion files.
  3. Choose the SQL Server 2025 MDF output and select the dbo tables you want. Use Table Preview to inspect stored values.
  4. Select Review Export. Check the verified row counts, table and column mappings, and omitted source objects.
  5. Confirm the mapping, select Create MDF, and download the result. Save As appears when a top-level browser supports the file picker.
  6. Attach a copy in SQL Server 2025 and verify the database before using it.

MDF Database Exporter Features

  • Read local MDF sources and identify unavailable tables or missing NDF companions.
  • Review destination table and column names, SQL types, widths, nullability, and omitted source objects.
  • Scan every selected table beyond the preview and block exports with unreadable rows or lossy column mappings.

Formats and Compatibility

InputA readable primary SQL Server .mdf and any matching .ndf files needed by the selected tables. Tested with SQL Server 2025 disk-based sources.
OutputA new .mdf containing selected dbo tables, supported scalar columns, and eligible nonclustered primary keys. Native fixture attachments were tested with SQL Server 2025 LocalDB build 17.0.4025.3.
BrowserA modern browser with local file support.
ScopeThe browser can inspect complete MDF and NDF file sets up to 2 GB. The writer handles up to 128 dbo tables and a 60 MiB typed-row budget, with additional limits for wide rows and primary keys.
Operating Systems
  • Windows
  • macOS
  • Linux
  • ChromeOS

Local Processing Without Uploads

Use this MDF exporter without uploading files. This browser-based tool reads your selected files locally. Open Sample loads synthetic Warehouse, Audit, and Orders data so you can try the workflow offline.

Select Open Sample to see the workflow with the included example.

How Table Data Moves Into a New MDF

To export database to MDF, the tool scans the chosen tables, checks the stored values, and builds new tables. It reports omitted objects such as triggers, views, foreign keys, and secondary indexes. The new database uses its own storage and collation settings.

Verify the Exported MDF

Download the new primary MDF and attach a copy in a scratch SQL Server 2025 instance with log rebuilding. Run DBCC CHECKDB and check your expected tables and row counts before using the export.

Frequently Asked Questions

Can I use this MDF exporter offline?

Yes. Select Download Tool ZIP, extract the package, and open the standalone HTML. It reads and writes local files with no upload.

Where is the MDF exporter download?

Select Download Tool ZIP for the free MDF exporter and its usage instructions.

How does the MDF exporter in browser mode handle missing files?

It lists required NDF companions. Tables with unmatched data pages are unavailable until the matching companions are added.

Can the tool write SQL Server MDF files from every table?

Select only dbo tables with supported scalar types and readable stored rows. Identity, computed, alias-typed, and other unsupported columns block their table’s export.

What is copied from the source?

Selected table and column names, supported types and widths, nullability, verified values, and eligible primary-key columns. The tool rebuilds keys as nonclustered and gives them new names.

Will the result open in SQL Server?

The fixture outputs attached and passed DBCC CHECKDB on SQL Server 2025 LocalDB build 17.0.4025.3. Verify your export in SQL Server before use.

Does this tool work offline on Windows, macOS, Linux, and ChromeOS?

Yes. Local Studio tools run offline on Windows, macOS, Linux, and ChromeOS. Download the tool ZIP, extract it, and open the included HTML file in a supported browser. Your files are processed on your device without uploads.

Which browsers can I use with this offline tool?

Use a current version of Google Chrome, Microsoft Edge, Mozilla Firefox, or Safari where that browser is available for your operating system. Chrome is built into ChromeOS, and Safari is available on macOS.