Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to 'Pack' a MS Access database
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to 'Pack' a MS Access database
Miscellaneous
Thread ID:
00863683
Message ID:
00863683
Views:
236
Hi.
I am using ADO and Cursor Adaptors to update
an Access table and its working fine. My pseudo Code is as follows:
Sele MyAccessCur
Delete All records
Append from MyVFPTBL

This gets all the data into the Access Table and its working fine.
The only thing I notice is that the Access Database starts to bloat, probably because I am deleting all and then appending in from my VFP table. (This happens to be the easiest way to update from the VPF data)

Now , I can got into Access , into Tools, into Data Utilites and select an option to Compact & Repair, which seems to do a 'Pack' and redueces the bloat.

Is there a way programtically, say using ADO or something else to do the same thing from within my VFP program. (The Customer may not have a copy of access and may not be able to run the repair utility... anyway I'd prefre to automate this if possible)

Any help appreciated.
regards,
Gerard
Next
Reply
Map
View

Click here to load this message in the networking platform