Convert MDF to MDB
Export SQL Server MDF data and schema into a compatible Microsoft Access MDB database.
Make MDB files online
We can't read MDF files yet, so this conversion isn't available. If you can export your work to one of these formats - or others - we'll turn it into MDB:
How to convert mdf to mdb file
- Databases
- No ratings yet.
A legacy Microsoft Access application may require an .mdb file instead of a SQL Server database, or a database may need to be delivered to a user without SQL Server. This is a database migration: the SQL Server data and selected schema must be exported into an Access database, not renamed from .mdf to .mdb.
What the MDF format is
MDF is SQL Server's primary data-file format. It stores tables, indexes, views, stored procedures, and other database objects for Microsoft SQL Server, including SQL Server Express and LocalDB. A database commonly also has an .ldf transaction-log file and may contain additional .ndf data files.
SQL Server normally opens an MDF through a compatible server instance; file utilities and Access cannot reliably read it as a standalone database. Attach the database with all required files, or restore a SQL Server backup, before starting the migration. A newer SQL Server database might not attach to an older server version.
What the MDB format is
MDB is the Microsoft Access 2000–2003 database format, based on the Jet 4.0 database engine. It is used by older Access applications and programs that support the Jet or ACE OLE DB and ODBC providers.
An MDB file is convenient as a self-contained desktop database, but it has a 2 GB maximum file size and does not support every SQL Server data type, security feature, server-side object, or concurrency pattern. Access versions from 2007 onward can usually create or save an older Access 2000–2003-format database, subject to installed drivers and application compatibility.
How to convert MDF to MDB
The most controlled method is the SQL Server Import and Export Wizard. The wizard is installed with applicable SQL Server client or Integration Services components; SSMS alone does not necessarily install it. Microsoft Access can import SQL Server tables directly, but it provides less control over a large migration.
- Install a SQL Server version compatible with the source database. SQL Server Express is sufficient for many migrations. Install SSMS for administration and the Import and Export Wizard if it is not already available.
- In SSMS, connect to the instance. Right-click Databases → Attach, select the MDF, and verify the paths for its LDF and any NDF files. The SQL Server service account must have read and write access to the database files. If a
.bakbackup exists, use Databases → Restore Database instead. - Right-click the attached database and select Tasks → Export Data, or start the SQL Server Import and Export Wizard separately.
- Choose the SQL Server Native Client or Microsoft OLE DB Driver for SQL Server as the source. Select the server, authentication method, and source database.
- Choose Microsoft Access as the destination. Select the Microsoft ACE OLE DB provider, create a destination file with the
.mdbextension, and select the Access 2000–2003 or Jet 4.0 format when the provider offers that choice. The provider's 32-bit or 64-bit architecture must match the wizard. - Select Copy data from one or more tables or views. Use Edit Mappings to select objects, rename tables, change destination types, map columns, and preserve identity values where supported. A view is normally exported as its result set, not as an equivalent Access query definition.
- Run the package, review its execution report, open the MDB in Access, and compare row counts and key values. Test relationships, indexes, dates, Unicode text, decimal precision, null values, binary fields, identity columns, and representative queries.
For a smaller migration, create a blank MDB in Access and use External Data → New Data Source → From Database → From SQL Server. Choose to import the required tables rather than link them if the result must be self-contained. Access can also save a newer database as an Access 2000–2003 file through File → Save As, but imported SQL Server objects still require type and schema review.
For recurring migrations, a desktop product such as Full Convert Enterprise can automate SQL Server-to-Access transfers after the MDF database has been attached to SQL Server; it is not a utility that safely converts an inaccessible MDF by changing its extension. Check its current provider and MDB-output support before deployment.
Compatibility and quality limits
The export transfers relational data and whatever table structure the selected mappings support. Stored procedures, triggers, SQL Server Agent jobs, permissions, linked servers, full-text indexes, and many SQL Server-specific views require manual recreation or have no MDB equivalent.
Review conversions involving nvarchar(max), varbinary(max), xml, geography, hierarchyid, datetime2, computed columns, and high-precision decimal values. Access may map these to Long Text, OLE Object, ordinary text or binary fields, Date/Time values with lower precision, or unsupported types. SQL Server decimal precision can exceed the precision available in an Access field.
Verify foreign keys and indexes instead of assuming that the export reproduced them. Large tables may exceed the MDB 2 GB limit, and Access has lower field, row, query, and multi-user concurrency limits than SQL Server. Keep the original MDF, LDF, and backup unchanged until validation is complete.
Browser-based converters are generally unsuitable for MDF-to-MDB migration. A service would need access to the database contents and would not reliably preserve SQL Server objects, permissions, relationships, or server-side behavior; uploading confidential production data also creates a security risk. Use a local SQL Server instance, Access, the Import and Export Wizard, or a desktop migration utility instead.
MDF vs MDB: format comparison
How the MDF and MDB formats compare on the properties that matter most for this conversion.
| Property | .MDF Media Descriptor File | .MDB Microsoft Access Database |
|---|---|---|
| Open standard | No | No |
| Compression | Both | — |
| Typical file size | Large | Medium |
| Opens in a web browser | No | No |
| Further editing | Not directly editable | Limited |
| Metadata support | Basic | Basic |
| Plain-text readable | No | No |
| Best used for | Long-term archiving | Data exchange |
| Introduced | 2000 | 1992 |
| Developer | Alcohol Soft | Microsoft |
Suggested software and links: mdf to mdb converters
Additional formats for
mdf file conversion
Reverse conversion
Convert to mdb from
other formats
- accdb to mdb
- mdbx to mdb
- excel to mdb
- xl to mdb
- dbf to mdb
- csv to mdb
- xlsx to mdb
- odb to mdb
- sql to mdb
- txt to mdb
- accdc to mdb
- accde to mdb
- accdp to mdb
- accdr to mdb
- accdt to mdb
- adb to mdb
- ade to mdb
- adp to mdb
- cdb to mdb
- db to mdb
- db3 to mdb
- doc to mdb
- docx to mdb
- dwg to mdb
- eps to mdb
- fdb to mdb
- g4 to mdb
- gdb to mdb
- idf to mdb
- json to mdb
- laccdb to mdb
- mat to mdb
- mda to mdb
- mde to mdb
- myd to mdb
- ods to mdb
- pst to mdb
- s2db to mdb
- s3db to mdb
- sav to mdb
- sdb to mdb
- sdf to mdb
- snp to mdb
- sqlite to mdb
- sqlite3 to mdb
- ssc to mdb
- sxc to mdb
- tbl to mdb
- tif to mdb
- toml to mdb
- tsv to mdb
- wk1 to mdb
- xla to mdb
- xlmx to mdb
- xls to mdb
- xlsb to mdb
- xlsm to mdb
- xltx to mdb
- xml to mdb
- yaml to mdb