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

  • The file is approaching 2 GB. That is the hard limit per database file, and compacting only buys time.
  • Locking complaints. A shared .accdb on a file share is designed for a handful of concurrent writers; more than that produces "database has been placed in an inconsistent state" and lost edits.
  • Everyone needs a Windows machine with Access. Reporting, dashboards and mobile access all require a copy of the file.
  • No audit trail, no scheduled backup, no permissions model worth the name. Server engines give you all three for free.
  • Growth. The next system (web front end, ERP, SaaS) expects a network database, not a file.

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

  • Multi-valued lookup fields (Access 2007+) hide a child table behind one column. They must be split into a proper one-to-many table in the target; no 1:1 mapping exists.
  • Attachment fields store compressed files inside system tables. Export them to files plus a path column, or to a BLOB column with the original name and content type.
  • Empty string vs NULL. Access distinguishes "" from NULL; most engines do not (Oracle treats them as the same). Decide the rule before loading, not after the first report breaks.
  • AutoNumber restarts at 1. If the identity column is created without a seed, the first new row collides with existing keys. Always check the maximum value after loading.
  • Reserved words and spaces. Table and field names like Order, Date or Group are legal in Access and reserved in most targets. Rename them in the mapping step rather than quoting them forever.

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 »