Skip to content

Convert MDB to SDF

Convert legacy Access MDB data into a SQL Server Compact SDF database.

Convert MDB files online

We don’t have a dedicated online converter for MDB to SDF yet, but you can convert MDB files online to these and more formats:

Want to convert MDB to SDF?

Let us know. We pick the conversions to add next by how many people ask for them.

How to convert mdb to sdf file

A legacy application built on SQL Server Compact may require an .sdf database while its existing records remain in Microsoft Access .mdb format. A direct conversion transfers the data into the file format required by that application without re-entering records.

What the MDB format is

.mdb is the Microsoft Access database format used as the default through Access 2003 and still supported by later Access versions for compatibility. MDB files can contain tables, indexes, relationships, queries, forms, reports, macros, and VBA code; applications can also use them through the Jet or ACE database engines.

MDB files are common in older desktop applications, departmental databases, and legacy data exports. A file may require an Access database password or linked tables stored outside the file.

What the SDF format is

For databases, .sdf normally identifies a SQL Server Compact database, also called SQL Server CE. It is a portable, file-based relational database used by embedded Windows software and applications built with SQL Server Compact providers.

SQL Server Compact stores tables, indexes, constraints, and database metadata in one file, allowing local applications to use a relational database without a separate server. Microsoft discontinued SQL Server Compact, so SDF is appropriate mainly when an existing application specifically requires it.

How to convert MDB to SDF

Full Convert Enterprise from Spectral Core is the most practical direct option when its installed version supports the required SQL Server Compact target. It can migrate Access data directly instead of using CSV, which would discard relationships, indexes, and many original data types.

  1. Close applications using the database and make a backup copy of database.mdb. Open the copy in Access and run Database Tools → Compact and Repair Database.
  2. Install Full Convert on Windows. Select MS Access as the source type, select the copied MDB file, and provide its database password if required.
  3. Select SQL Server Compact as the destination type and specify an output name such as application.sdf. Select the SQL Server Compact version required by the receiving application.
  4. Review table and column mappings. Transfer primary keys, indexes, and foreign-key relationships where supported, and exclude Access system or temporary tables that the target application does not need.
  5. Run the migration. Open the SDF with SQL Server Compact Toolbox or the target application and verify row counts, key relationships, indexes, dates, Boolean values, and Unicode text.

SQL Server Compact Toolbox is useful for inspecting the generated file and running test queries, but it is primarily a SQL Server Compact management tool, not a complete MDB-to-SDF migration utility.

There is no widely reliable online service that directly produces a usable SQL Server Compact SDF from MDB. Many browser converters only export MDB tables to CSV, XLSX, or generic SQL scripts, and uploading a database can expose credentials, personal data, and application structure. Use a local converter for confidential or structurally complex databases.

Conversion limits

The migration transfers database structures and data; it does not convert an Access application into a SQL Server Compact application. Forms, reports, macros, VBA modules, Access-specific queries, linked-table definitions, and Access user-level security require separate migration or redevelopment.

Check mappings for AutoNumber, Yes/No, attachment, multivalued, calculated, and other complex fields. These may need conversion to ordinary numeric, Boolean, text, or binary columns. Queries using Access functions such as IIf, DatePart, or domain aggregate functions usually require SQL Server Compact syntax changes.

SQL Server Compact has a 4 GB maximum database size and fewer features than Access or a server-based SQL database. Test the result with the exact SQL Server Compact provider version used by the application, because an older application may reject a database created with a newer provider.

Information about file extensions and file types is provided by File-Extensions.org

Already downloaded

This file has already been downloaded. For your privacy it was deleted from our server right after the download, so it cannot be downloaded again. To get it once more, convert the file again.