Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ODBC compact of access database
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00692642
Message ID:
00692784
Views:
28
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform