Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to 'Pack' a MS Access database
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to 'Pack' a MS Access database
Divers
Thread ID:
00863683
Message ID:
00863683
Vues:
235
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform