Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compact and repair db question

Status
Not open for further replies.

JasonPurdueEE

Technical User
May 21, 2002
131
US
Hello everybody.
Quick question: What exactly does the Compact and Repair Database function do? I realize it probably does exactly as it say, compacts and repairs, but what is it compacting? And what is the reccommended frequency of running this? Are there problems with running it too often?

JASON
 
No problems running it as often as you wish.

Compact compacts the size of the database down to what is actually used - Access doesn't necessarily free up space that is not used. So if you delete a table, the file size remains the same. After a compact though, the database size will reflect this change in size.

A good example of this is importing huge text files multiple times. Import it once, delete a table, import it again with slightly different parameters, delete it again, etc. This can (and has) boosted my databases to 200MB in a few hours, and they compacted down to 60MB.



Repair fixes some corruption errors. There is still a great deal of things repair *won't* do, but some types of database corruption are fixed by repair.

--
Find common answers using Google Groups:

Corrupt MDBs FAQ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top