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:
00694557
Views:
16
Thanks, that worked great!


>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!
Steve Howie, owner
DaSH Technology
Denver, CO
Previous
Reply
Map
View

Click here to load this message in the networking platform