Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ODBC compact of access database
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00692642
Message ID:
00692784
Vues:
24
This message has been marked as the solution to the initial question of the thread.
Hi Steve,

Uses API function SQLConfigDataSource from ODBC:
DECLARE Integer SQLConfigDataSource in odbccp32.dll Integer, Integer,String, String
LOCAL lcNew,lcFile
lcNew="c:\temp\compact.mdb"
lcFile="c:\temp\Data.mdb"

IF SQLConfigDataSource(0,1,"Microsoft Access Driver (*.mdb)","COMPACT_DB= "+lcNew+" "+lcFile)=0
   * compact MDB failed
ELSE
ENDIF
MartinJ

>I am sending/receiving information with an Access table via ODBC, but the file appears to be growing even though I mark the records as deleted when I've finished importing. I noticed on the graphical version of the driver that I can compact the file.
>
>Is there a way to do this from within VFP 7?
>
>Thanks!
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform