Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compact a MDB file using ADO or SQL
Message
From
12/08/2002 23:44:57
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00688777
Message ID:
00688968
Views:
25
>Hi all!
>
>Anybody knows how to compact a MDB using ADO or SQL pass throught ?
>
>
>Is it possible ?

You could use Jet and Replication Objects (JRO); sample code (not tested):
oJE = CreateObject("JRO.JetEngine")
oJE.CompactDatabase("Data Source=" + Source Database With Path, ;
  "Data Source=" + Destination Database With Path)
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform