Compact and Repair Database

For use with Microsoft Access databases only.

Background

If you delete data or objects in an Access database, or if you delete objects in an Access project, the file can become fragmented and use disk space inefficiently. Using the Compact and Repair feature of Microsoft Access on a regular basis will keep an Access database or project from reaching the 2GB size limit. Once a file reaches that size it will cease to function. The compact process makes a copy of the Access file and rearranges how the file is stored on your disk. Compacting an Access database that is in the format of a lower-level  version of Access will not cause it to be converted to the format of the current version of Access that is installed.

Compact and Repair Program File

Compact and Repair Store Data File

Note1: A backup file will be created with the name in the format of OrderManagerDataBUxxxxxxxx.mdb, where xxxxxxxx reflects the date that the backup was created. If more than one backup is made during the same day another digit is appended to the name of the backup file to reflect each subsequent backup that is made, e.g., OrderManagerDataBUxxxxxxxx-1.mdb. By default, the backup files are located in the c:\StoneEdge\DataArchives folder. Confirm the location of the Data Archives folder in your environment by pressing Ctrl+Shift+C at the Main menu of Order Manager.

Note2: If you encounter an error during the compact process and need to restore the data file from the backup, copy the most recent backup file and paste it into the folder where the data file normally resides. Rename the failing production data file (for example, mystore.mdb to mystore_bad.mdb) and then rename the backup copy to the production name (mystore.mdb). Re-open the Order Manager.

 

 

 

See Also

 

Re-Compile Program

Updated 6/17/09

Modified 6/17/10