Re: Why compact an Access Database? by Merlin
Merlin
Fri Jul 11 15:59:39 CDT 2003
All data in a database is referenced by an internal index, when you delete a
record the internal index reference is marked as deleted - the actual data
is not really deleted; compacting simply recreates the database record for
record skipping the deleted indexed items. At the same time error checking
and other optimisations are being performed.
Reasons to compact the database are to shrink the data file by removing
deleted records and at the same time this speeds data access as the system
does not have to move through deleted records when performing data
retrieval.
As you can see you can't possibly still work on a database while all this is
going on, especially as records are being internally reorganised.
Merlin
"Charles A. Lackman" <Charles@cet.com> wrote in message
news:e%23Fm$n9RDHA.1720@TK2MSFTNGP10.phx.gbl...
> Why should a person compact their access database? I have noticed that
> doing so creates a new database that is compacted instead of compacting
the
> current database, why can't you just compact the database you are using.
I
> am referring to the ADO. Replication Object libruary and the jro.jetengine
> within Visual Studio.net.
>
> Thanks
>
> Chuck
>
>