'Database has reached Maximum Size'

J

John F.

I keep getting the message 'Database has reached Maximum Size', even when I
have closed it down & re-opened it - What does it mean? Is there a way
around it, as my database seems to be giving very odd outputs.
 
K

KC-Mass

In Access 2000 - 2007 the maximum file size of the MDB file is 2 gig.

if it is not filled with actual data you can shrink it back by using the
Tools / Database Utilities / Compact and Repair.... to compact the database.
Sometimes a lot of import and export activity will bloat a database - that
will compress. If it does not compress you have bigger problems.

Access 97 had a limit of 1 gig.

Good luck


Regards

Kevin
 
T

Tom Wickerath

Hi John,

The maximum size for a JET (.mdb) or ACE (.accdb, a new format available in
Access 2007, but not earlier versions) file is 2 GB (2048 MB). How large is
your file?


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________
 
B

Barbara Farmer

You may be having problems with your database but I am having problems with
Windows Defender. It wont initialize on start up.
 
J

John W. Vinson

You may be having problems with your database but I am having problems with
Windows Defender. It wont initialize on start up.

The Microsoft webpage may have misled you: this newsgroup is not about Windows
Defender, or about Windows in general, but about the database software
Microsoft Access.

Please find a forum for your version of Windows and repost your question.
 
F

Fred

A couple of the simple ideas:

Are you periodically doing "compact and repair". Some folks don't know that
you have to do that.

Are you storing pictures IN your database (i.e. OLE field) For 2003 and
before, that would cause exponential bloat. For 2007, it's not
"exponential" but it could still make it get too big.
 
T

Tom Wickerath

And the efficiency that Access 2007 offers as far as storing images is only
available when using the newer .accdb file format.

Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________


A couple of the simple ideas:

Are you periodically doing "compact and repair". Some folks don't know that
you have to do that.

Are you storing pictures IN your database (i.e. OLE field) For 2003 and
before, that would cause exponential bloat. For 2007, it's not
"exponential" but it could still make it get too big.
 
D

David W. Fenton

And the efficiency that Access 2007 offers as far as storing
images is only available when using the newer .accdb file format.

Aha! One other thing to add to the very short list of reasons to use
ACCDB:

1. multivalue fields.

2. integration with SharePoint

3. improved storage of images.

Are there any more features that make it worth choosing ACCDB over
MDB as the format for an app being run in A2007?
 
T

Tony Toews [MVP]

David W. Fenton said:
Aha! One other thing to add to the very short list of reasons to use
ACCDB:

1. multivalue fields.

2. integration with SharePoint

3. improved storage of images.

Are there any more features that make it worth choosing ACCDB over
MDB as the format for an app being run in A2007?

Worthwhile is in the eyes of the beholder of course.

There is the ability to append only to memo fields which is supported
by Sharepoint.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
J

John F.

General Reply

I have no pictures in my database.

Saving the Database in 2002/3 format, the size comes to 324KB, in the 2007
version, it is 3.26MB. I've no idea why this occurs, I imagine it is spurious
data, which rather annoys me, as a software engineer.

My database consists of two tables - (1) 353 rows x 6 columns, and (2) 34x5.
Also, I have two small macros and one query - so why all this comes to 3.6MB,
I've no idea.

I have never had a Excel spreadsheet fill up. I will probably try and get
this working in the 2002/3 format and then try the 2007 format. If it doesn't
work in Access 2007, then I will just have to contact Microsoft.

Also, I have done Compact & Repair, by now I think the database is
corrupted, so I might have to start again.

If anybody would like a 'quick' look at my database & advise me, I could
e-mail a copy.
 
T

Tom Wickerath

Hi John,

Was your A2007 database 3.26MB before or after compacting?

Here is an article by Cary Prague that you might be interested in reading.
Although it was written for Access 97, I wouldn't be surprised if the same
issues were present in later versions of Access:

WORKING WITH LARGE PROGRAM DATABASES IN ACCESS 97
http://web.archive.org/web/20030204023622/http:/www.databasecreations.com/largedb.htm


For the Access 2002/2003 file format, there is a KB article that explains
how some file bloat can occur:

Database bloat is not stopped by compacting database with Access 2002
format

http://support.microsoft.com/?id=810415


Here are several more KB articles available on the topic of DB Bloat:
http://tinyurl.com/2dmpw

If anybody would like a 'quick' look at my database & advise me, I
could e-mail a copy.

Sure, I'll have a look. You can send to the address indicated in the header
of this newsgroup message, replacing the obvious "at" with @ and "dot" with
a period. Please do not post your e-mail address (or mine) to a newsgroup
reply. Doing so will only attract the unwanted attention of spammers.


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/

__________________________________________


General Reply

I have no pictures in my database.

Saving the Database in 2002/3 format, the size comes to 324KB, in the 2007
version, it is 3.26MB. I've no idea why this occurs, I imagine it is
spurious
data, which rather annoys me, as a software engineer.

My database consists of two tables - (1) 353 rows x 6 columns, and (2) 34x5.
Also, I have two small macros and one query - so why all this comes to
3.6MB,
I've no idea.

I have never had a Excel spreadsheet fill up. I will probably try and get
this working in the 2002/3 format and then try the 2007 format. If it
doesn't
work in Access 2007, then I will just have to contact Microsoft.

Also, I have done Compact & Repair, by now I think the database is
corrupted, so I might have to start again.

If anybody would like a 'quick' look at my database & advise me, I could
e-mail a copy.
 
D

David W. Fenton

Worthwhile is in the eyes of the beholder of course.

Naturally. I'm trying to be charitable. Other than image storage, I
see nothing in ACCDB format that is of any value to any of my
clients or to me as a programmer.
There is the ability to append only to memo fields which is
supported by Sharepoint.

Like multi-value fields, a feature designed for people who don't
know how to do it correctly.
 
J

John F.

Thanks for all your help.

Yes, compacting the Database, especially on Closing (via an option), does
reduce the size, by rather a lot.

Also, there is an Array problem (in a macro, which I wrote), which I'm
trying to sort out.
 
T

Tom Wickerath

Hi John,

I recommend that you do *not* implement the Compact on Close option. For one
thing, you generally do not need to compact every time. Also, this doesn't
give you a chance to make a backup copy before compacting.


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/

__________________________________________

Thanks for all your help.

Yes, compacting the Database, especially on Closing (via an option), does
reduce the size, by rather a lot.

Also, there is an Array problem (in a macro, which I wrote), which I'm
trying to sort out.
 
D

David W. Fenton

I recommend that you do *not* implement the Compact on Close
option. For one thing, you generally do not need to compact every
time. Also, this doesn't give you a chance to make a backup copy
before compacting.

Nor is it of any use in a properly-designed application, where the
only thing the user will ever open is the front end. Front ends
definitely grow with use, but if they are well-implemented, they
will stop growing after a certain point (once the code and queries
are all compiled). This assumes you don't create and delete any
temporary objects nor store any temporary tables in the front end --
the second of those is definitely a design error, while the former
is a design error if you rely on it overmuch in a production app.

The bottom line:

Front ends don't need to be compacted. If they bloat, replace them
with a fresh copy.

Even if Compact on close were safe, it would be of use only in a
back end, and users won't be opening the back end.
 
J

John F.

Generally, is there a rule of thumb, where after a certain size, it is
advisable to compact a database?

For example, my Access database is (when compacted) 450KB, it has grown to
15MB, in some cases. Most of my problems have gone away, when I have
compacted it, though others remain, due to my coding of the macros -
gradually being sorted out.
 
D

David W. Fenton

Generally, is there a rule of thumb, where after a certain size,
it is advisable to compact a database?

It's more a percentage issue. Extremely small front ends like yours
can grow a lot during normal production use, though more than a 4x
or 5x increase would bother me. Small front ends (c. 5MBs) can
double in size without major problems. Medium-sized front ends
(10-20MBs) oughtn't grow by more than 50% under normal usage. Large
front ends should grow only by very small percentages.

In other words, the smaller the front end, the greater a percentage
of total size you can get from bloat.

For back ends, you shouldn't even worry about the size -- you should
just be backing up and compacting on a regular schedule. Whether
that's every night or once a week or twice a week depends on how
much data is being entered into your database. The key point is that
it should be done regularly, on a schedule, without human
intervention required to make it happen.
For example, my Access database is (when compacted) 450KB, it has
grown to 15MB, in some cases. Most of my problems have gone away,
when I have compacted it, though others remain, due to my coding
of the macros - gradually being sorted out.

It entirely depends on *why* it's growing. If it's bloating while
you're programming, this is no big deal -- you should compact as
frequently as you like, as well as occasionally decompiling.

If it's bloating in production use, then you've probably got design
errors somewhere along the line that are causing churn in the front
end. Sharing a front end is a very good way to make it bloat --
don't do it. Instead, give all users their own private copies of the
front end. Storing temp tables in a front end is another -- don't do
it. Store temp tables in a separate temp MDB in the same folder as
your front end with tablelinks to the temp MDB. Distributing it in
an uncompiled state is yet another way to make it bloat, especially
if it has problems that prevent it from compiling fully. You should
always fully compile your front end before distributing it to users,
and in the best scenario, you should distribute an MDE and not an
MDB. MDEs can't decompile under any circumstances and they also have
better recovery from unhandled errors (in an MDB, all variables in
memory are reset after a code break; in an MDE, they are retained).

So, the answer is:

It depends! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top