☰
Access Database Migration — .mdb / .accdb to SQL

Access Database Migration: Moving .mdb and .accdb Tables to a Server

Microsoft Access is a brilliant desktop tool and a poor multi-user server: a 2 GB file ceiling, a file-share locking model, and no remote or API access. Migration means moving the tables and data into SQL Server, MySQL, PostgreSQL or another engine, keeping AutoNumber counters, relationships, indexes and Unicode text intact.

.mdb or .accdb — does it change the migration?

.mdb (Jet).accdb (ACE)
Access versions2003 and earlier2007 and later
Text storageANSI code page in older files; Unicode from Jet 4Unicode (UTF-16) throughout
Special field typesOLE Object, MemoAdds Attachment and multi-valued lookup fields
Migration impactCode page has to be respected on old filesThe two new field types cannot map 1:1 — see below

The signs you have outgrown Access

Pick the target engine

TargetGood fit whenGuide
SQL ServerWindows/AD environment, existing IT support, SSRS or Power BI reportingAccess to SQL Server
MySQL / MariaDBWeb application, PHP/LAMP stack, cheap managed hostingAccess to MySQL · MariaDB
PostgreSQLNo licence cost, strict typing, cloud hostingAccess to PostgreSQL
ExcelYou only need the data, not a database (one-off extract)Access to Excel
SQLiteSingle-user desktop application that needs a portable fileAccess to SQLite
Oracle / MongoDBStandardising on the corporate platformOracle · MongoDB

How the move works

  1. Open the file directly — .mdb and .accdb are read natively, no Access installation needed on the machine doing the work.
  2. Select tables (all of them, or the ones that belong on the server) — the file-only tables can stay desktop.
  3. Review the type mapping: AutoNumber→IDENTITY/AUTO_INCREMENT/SERIAL, Text→NVARCHAR/VARCHAR, Memo→NVARCHAR(MAX)/TEXT, Currency→MONEY/DECIMAL(19,4), Yes/No→BIT/BOOLEAN, OLE Object→VARBINARY/BLOB, Date/Time→DATETIME/TIMESTAMP.
  4. Load the rows in bulk and compare per-table counts with the source.
  5. Recreate your queries as views in the target engine, and re-point the front end (Access can stay as a front end via linked tables, or be replaced by a web application).

Five Access-specific traps

What Access objects migrate — and what does not

Moves: tables, rows (including memo and OLE content), primary keys, foreign keys, indexes, default values, AutoNumber settings, Unicode text.

Does not move: forms, reports, macros, VBA modules and saved queries. These are application objects tied to Access itself. Migration tools — this one included — move the database, and the application has to be rebuilt or re-pointed at the new server.

FAQ

Do I need Microsoft Access installed to migrate the file?

No. .mdb and .accdb files are read directly, so Access does not have to be installed on the machine, and no server-side component is deployed.

Can I keep using Access as the front end after migrating?

Yes, and it is a common intermediate step: migrate the tables to SQL Server, then link them back into Access as linked tables. Forms and reports keep working while the data finally lives on a real server.

How do I move a multi-valued lookup field?

It has no direct equivalent. Create a child table (parent id, value) in the target, and load one row per selected value. The mapping step is where that decision is made.

Will AutoNumber values be preserved?

Yes — the existing values are copied as data, and the identity counter can be re-seeded to the maximum existing value so the next insert does not collide.

Can the migration run while users keep working in Access?

You can copy once while users work, then run an incremental catch-up during a short maintenance window and switch. Access writes during the final window are the only ones at risk, so keep it short.

Is a 2 GB file a problem for the migration itself?

No — that is Access's own limit. The target server has no such ceiling; the migration simply reads all tables and writes them out, with row counts available for verification.

Access guides by target

Migrate your own .accdb before you decide

Download Free Trial »