Book a Demo

Author Topic: ProjectTransfer from DBMS shrinks my output EAP file?  (Read 6264 times)

bknoth2

  • EA User
  • **
  • Posts: 129
  • Karma: +2/-0
    • View Profile
ProjectTransfer from DBMS shrinks my output EAP file?
« on: February 11, 2018, 09:49:44 am »
When I transfer a file through the menu system (Configure/Transfer/Project Transfer - DBMS to File) the resulting .EAP file is about 56MB. When I use the script below, the .EAP file is about 12 MB. Any idea what the difference is?

Thanks

(I left out the strings that define paths. Here's the critical part of the script):

     dim eapString
   eapString = "EAConnectString:BARDA EA DB --- DBType=4;Connect=Provider=MSDASQL.1;Persist Security Info=False;Data Source=EA DB"
   
   dim repository
   dim projectInterface
'   set repository = CreateObject("EA.Repository")
   set repository = GetObject(, "EA.App").Repository

   'get project interface
   set projectInterface = repository.GetProjectInterface()

   projectInterface.ProjectTransfer eapString, TargetFilePath, LogFilePath

end sub

main

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: ProjectTransfer from DBMS shrinks my output EAP file?
« Reply #1 on: February 11, 2018, 11:13:37 am »
Quite strange. Though I would not really care about the difference.

My 1st hard drive for my Atari ST had 32 MB. That time I would have cared. But now I have a little SSD with 256 GB (since more than 5 years and only 50% filled).

q.

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 320
  • Karma: +15/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: ProjectTransfer from DBMS shrinks my output EAP file?
« Reply #2 on: February 11, 2018, 09:31:37 pm »
Thats a significant difference. Did you try running 'compact file' option in the transferred EAP.? what is the resulting size of the model?

bknoth2

  • EA User
  • **
  • Posts: 129
  • Karma: +2/-0
    • View Profile
Re: ProjectTransfer from DBMS shrinks my output EAP file?
« Reply #3 on: February 12, 2018, 09:24:47 am »
Thats a significant difference. Did you try running 'compact file' option in the transferred EAP.? what is the resulting size of the model?
That was it! Compacting it reduced it to 10 MB and compacting the 12MB file also reduced it to 10MB.

Thanks, I didn't know about that feature.

- Bruce

bknoth2

  • EA User
  • **
  • Posts: 129
  • Karma: +2/-0
    • View Profile
Re: ProjectTransfer from DBMS shrinks my output EAP file?
« Reply #4 on: February 12, 2018, 09:26:52 am »
Quite strange. Though I would not really care about the difference.

q.
I care because I thought valuable information might be missing. Nothing worse than a backup that isn't complete.

- Bruce

Nizam

  • Prolab Moderator
  • EA User
  • *
  • Posts: 320
  • Karma: +15/-2
  • Model Sharing - Simplified
    • View Profile
    • Professional Model Collaboration
Re: ProjectTransfer from DBMS shrinks my output EAP file?
« Reply #5 on: February 12, 2018, 06:30:06 pm »
That was it! Compacting it reduced it to 10 MB and compacting the 12MB file also reduced it to 10MB. - Bruce

Good to know there wasn't any data loss. I wasn't aware the two ways of doing PT will yield such different sizes..

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: ProjectTransfer from DBMS shrinks my output EAP file?
« Reply #6 on: February 12, 2018, 09:51:55 pm »
Yes, loosing information is awful. But M$-Access is notorious for wasting space in all circumstances. You need to run a DB compact every now and then to get rid of waste.

Strange though that Menu and Automation result in different size. Well, it's probably just "normal" EA behavior.

q.