Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: vige46 on December 03, 2004, 04:47:28 am

Title: compact .eap file
Post by: vige46 on December 03, 2004, 04:47:28 am
Hello,

I'd like to call 'compact .eap file' function from my script, but I can't find it.

Is this function supported in automation interface?

Thank you for help.

I use EA of version 3.6.659( Professional Edition)

Regards,
Miro
Title: Re: compact .eap file
Post by: thomaskilian on December 04, 2004, 11:54:00 am
Not quite shure, but this seems to be ACCESS basics. Maybe it can be found in the JET interface ???
Title: Re: compact .eap file
Post by: sargasso on December 05, 2004, 01:45:39 pm
Take a look at www.databaseadvisors.com I am sure they would have someting on this topic (compressing Access dbs) somewhere.

bruce
Title: Re: compact .eap file
Post by: vige46 on December 16, 2004, 06:13:03 am
Thanks for advices.

var Engine = new ActiveXObject("JRO.JetEngine");

Engine.CompactDatabase("Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+mdl,
   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+mdlnew);


Note, that 'Use JET 4.0' in Local Options-General should be set.