Instructions · MDF to SQL Script
- Open the HTML file in a modern browser. Review Security Check and select Continue.
- Select Open Sample or choose one MDF and any required NDF files. Add missing companion files with Add NDF Files.
- Select the tables you want. Choose Preview to inspect a table’s column definitions and up to 100 stored rows.
- Select Generate SQL Script, then Download. Use Save As where your browser makes it available.
- Run the UTF-8 script as one batch in an empty SQL Server 2025 user database with compatible collation and SQLCMD mode off. Compare the resulting tables and row counts.
Verified with cleanly detached SQL Server 2025 MDF and NDF files. The reader requires complete data files totaling up to 2 GB and may reject layouts or values it cannot verify. The script carries base column definitions and rows as decoded. SQL Server features such as indexes, constraints, identities, original collations, filegroups, triggers, permissions, and stored code are omitted.