A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Compact and Repair on Close



 
 
Thread Tools Display Modes
  #11  
Old March 26th, 2007, 01:41 AM posted to microsoft.public.access.gettingstarted
John Spencer
external usenet poster
 
Posts: 2,364
Default Compact and Repair on Close

ON THE OTHER HAND

I've been using Automatic compact for a couple of years on some of my
databases (Access 2000) and have had no (discovered) problems. The
reason for the compact and repair is that a couple of processes I use in
this particular database build and change stored queries. For some
reason, this causes some minor bloating in the front-end database that
is handled by the compact on close.

All the data is in an MS SQL backend except for a couple of temporary
tables in a temporary database.



'================================================= ===
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'================================================= ===


Linda (RQ) wrote:
Hi,

I was looking around in the options and see a checkbox to compact and repair
the database on close. This is not checked by default. It seems like it
would be a good idea, is there a reason why it wouldn't be a good idea to
have this checked?

Thanks,
Linda


  #12  
Old March 26th, 2007, 05:40 PM posted to microsoft.public.access.gettingstarted
David W. Fenton
external usenet poster
 
Posts: 3,373
Default Compact and Repair on Close

"Ed Metcalfe" wrote in
:

Since Access 2000 frontend Access databases that contain no local
tables (only linked tables) do seem to bloat over time and can
grow up to several hundred megabytes in size.


A properly-designed Access front end will bloat somewhat over its
compacted size, but only up to a certain point, and then no more.
It's only badly designed front ends that continue to bloat.

Using an MDE will take care of most of the bloat if you don't
include any temp tables in the front end.

My clients *never* compact their front ends.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
  #13  
Old March 26th, 2007, 05:42 PM posted to microsoft.public.access.gettingstarted
David W. Fenton
external usenet poster
 
Posts: 3,373
Default Compact and Repair on Close

"Linda RQ" wrote in
:

"John W. Vinson" wrote in
message ...
On Sun, 25 Mar 2007 06:28:46 +0100, "Ed Metcalfe"
wrote:

Since Access 2000 frontend Access databases that contain no local
tables (only linked tables) do seem to bloat over time and can
grow up to several hundred megabytes in size.


If that happens, I'd suggest just replacing it with a fresh copy.


How does it get bloated?


Three things make a freshly compacted front end grow over time:

1. gradual compilation of all queries, recordsources and rowsources
(compacting discards all of these).

2. code that decompiles for some reason and then must be recompiled
at runtime (this is a design error -- properly written code will not
decompile, and you should deliver your front end in a fully compiled
state).

3. temp data written to and deleted from the front end. This is also
a design error -- temp data should be stored in a separate MDB that
is completely disposable and recreated in code or copied from an
empty template when needed.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
  #14  
Old March 26th, 2007, 05:43 PM posted to microsoft.public.access.gettingstarted
David W. Fenton
external usenet poster
 
Posts: 3,373
Default Compact and Repair on Close

CES wrote in
:

The real problem with compact and repair is that it doesn't save a
backup copy of the database it just overwrites the previous copy.


And that you aren't given the option of skipping it.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
  #15  
Old March 26th, 2007, 05:45 PM posted to microsoft.public.access.gettingstarted
David W. Fenton
external usenet poster
 
Posts: 3,373
Default Compact and Repair on Close

John Spencer wrote in
:

I've been using Automatic compact for a couple of years on some of
my databases (Access 2000) and have had no (discovered) problems.
The reason for the compact and repair is that a couple of
processes I use in this particular database build and change
stored queries. For some reason, this causes some minor bloating
in the front-end database that is handled by the compact on close.


I would recommend not editing stored QueryDefs in code. In my 11
years of regular Access development, I've encountered only one case
where I was forced to use a stored QueryDef and change and save it
at runtime.

I would call the decision to edit saved QueryDefs at runtime a
design error.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
  #16  
Old March 26th, 2007, 07:47 PM posted to microsoft.public.access.gettingstarted
John Spencer
external usenet poster
 
Posts: 7,815
Default Compact and Repair on Close

You are entitled to your opinion.

--
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
..

"David W. Fenton" wrote in message
. 1...
John Spencer wrote in
:

I've been using Automatic compact for a couple of years on some of
my databases (Access 2000) and have had no (discovered) problems.
The reason for the compact and repair is that a couple of
processes I use in this particular database build and change
stored queries. For some reason, this causes some minor bloating
in the front-end database that is handled by the compact on close.


I would recommend not editing stored QueryDefs in code. In my 11
years of regular Access development, I've encountered only one case
where I was forced to use a stored QueryDef and change and save it
at runtime.

I would call the decision to edit saved QueryDefs at runtime a
design error.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:36 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.