Author Topic: compact .eap file  (Read 4338 times)

vige46

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
compact .eap file
« 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

thomaskilian

  • Guest
Re: compact .eap file
« Reply #1 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 ???

sargasso

  • EA Practitioner
  • ***
  • Posts: 1406
  • Karma: +1/-2
  • 10 COMFROM 30; 20 HALT; 30 ONSUB(50,90,10)
    • View Profile
Re: compact .eap file
« Reply #2 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
"It is not so expressed, but what of that?
'Twere good you do so much for charity."

Oh I forgot, we aren't doing him are we.

vige46

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: compact .eap file
« Reply #3 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.