Microsoft Access
Access database near 2 GB: what to do
An Access file cannot grow beyond 2 GB. Here is how to see what takes up space, how to win it back and what to do as the limit gets closer.
In short
- An Access database, with all its data and objects, cannot exceed 2 GB, minus the space taken by system objects.
- The file also grows because of temporary objects and space that is never reclaimed, which only Compact and Repair frees up.
- Attachments and images saved in tables eat up space fast.
- You gain space by spreading the tables over several linked files, each with its own limit, or by archiving old data.
- When the data grows every year, the stable route is SQL Server.
The Access limit
Microsoft states it in the Access specifications: the total size of a database, including all objects and data, is 2 GB minus the space needed for system objects. This applies to .accdb files and to old .mdb files, with 32-bit and 64-bit Access alike.
- Concurrent users: 255 at most.
- Objects in the database: 32,768 at most, counting tables, queries, forms, reports and modules.
- Attachments: 256 MB at most per file, and all attachments together count towards the 2 GB of the database.
Microsoft adds that, in most cases, getting close to these limits is a sign of a problem in the design of the database. In practice, near the limit, data entry and imports can fail with unclear errors: it pays to act well before then.
How to see how big the file is
From File Explorer
Right-click the database file, then Properties: the Size entry shows how big the file is.
From Access
File › Info, then the link to view the database properties: the size appears there too.
Note the size every month
A line with the date and the size is enough: it tells you how fast the file grows and when it will reach the limit.
If the database is split, the file to keep an eye on is the back end with the tables: the front end is usually small.
What makes the file grow
- Space not reclaimed: Microsoft explains that the space of deleted objects is not reclaimed by itself, and that temporary objects created by Access stay in the file even when they are no longer needed.
- Attachments: Access compresses attachments, except formats that are already compressed, such as JPEG photos. Documents and photos saved in records make the file grow fast.
- Old OLE Object fields with images: according to Microsoft, a bitmap can take up to ten times the space of the original file.
- Staging tables emptied and refilled at every import: the space they leave behind is freed only by compacting.
Never compacted
- Datathe rows in use
- Empty spacedeleted and temporary objects
- Attachmentsphotos and documents in the records
The limit comes closer fast
Well-kept file
- Datathe rows in use
- Compactedempty space recovered
- Documents outsidein a network folder
More room before the limit
Recover space now
The first step is Compact and Repair. Microsoft points out that it does not compress the data: it makes the file smaller by removing unused space. On a file that has never been compacted, the difference can be large.
Make a copy
A backup first of all, as Microsoft advises. We explain how in the guide to backing up an Access database.
Get everyone out
Compacting needs exclusive access to the file.
Compact
File › Info › Compact & Repair Database. If the database is split, open the back end directly and compact that.
The option that compacts the database every time it closes looks handy, but Microsoft advises against it in databases used by several people.
Would you like an opinion on your case?
Send us the file: within 48 hours you receive a free written assessment, even if the answer is that a small fix is enough.
When compacting is not enough
- Archive old data: Microsoft suggests regularly moving the oldest records to another database when the file grows too fast.
- Several linked files: according to Microsoft, the limit can be worked around by linking to tables stored in other Access databases, each of which can reach 2 GB. For example, a very large table in a file of its own.
- Documents outside the database: instead of attaching files to records, save them in a network folder and keep the path in the record.
Note: splitting the database into a front end and a back end does not add space for data, because the tables all stay in the back end. Splitting serves other purposes, as we explain in the guide to Access slow on a network.
The stable route: SQL Server
Microsoft recommends moving to SQL Server precisely when an Access database reaches the 2 GB limit or has to serve more than 255 users. The tables move to SQL Server, while forms and reports stay in Access, linked to the new tables.
SQL Server Express is free: it accepts databases of up to 10 GB up to version 2022, and up to 50 GB from version 2025. We cover this in the guide on how to move Access tables to SQL Server.
Frequently asked questions
What happens when the file reaches 2 GB?
Access can no longer write to the file: data entry, imports and compacting can fail with unclear errors. It is better to act well before then, as soon as the file passes 1.5 GB.
Does Compact and Repair delete data?
No: it removes unused space, not data. On tables that are already damaged, though, it can truncate data, which is why Microsoft always advises making a copy first.
Does the limit also apply to 64-bit Access?
Yes: the 2 GB limit is the same with 32-bit and 64-bit Access. The 64-bit version can use more memory, but the file is still limited.
Does splitting the database double the space?
No, if all the tables stay in the same back end. Space increases only by spreading the tables over several linked files, each with its own 2 GB limit.
Does SQL Server Express cost anything?
No, it is the free edition of SQL Server. It has size and resource limits: 10 GB per database up to version 2022, 50 GB from 2025.
Sources
- Microsoft: Access specifications
- Microsoft: compact and repair a database
- Microsoft: attach files and graphics to the records
- Microsoft: migrate an Access database to SQL Server
- Microsoft: editions and supported features of SQL Server 2025
Official Microsoft pages.