dbTalk Databases Forums  

Setting up SSIS Execute Package tasks to use relative paths

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Setting up SSIS Execute Package tasks to use relative paths in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
matt.karriker@blackbaud.com
 
Posts: n/a

Default Setting up SSIS Execute Package tasks to use relative paths - 08-15-2006 , 01:29 PM






I want to use execute pacakge tasks in my SSIS solution so that when a
package is called the relative path of the parent package is used to
locate the child package. My first attempt to do this was to remove
the hard coded path when setting up the file connection,
C:\Package1.dtsx replaced with Package1.dtsx. While this works when
executing via designer when executed via dtexecui the connection fails.
Any advice on this one. I am sure there something I am missing but
being new to SSIS I am not sure what i am missing.


Reply With Quote
  #2  
Old   
Nils Magnus Englund
 
Posts: n/a

Default Re: Setting up SSIS Execute Package tasks to use relative paths - 08-16-2006 , 12:10 PM






Hi Matt,

Perhaps you're better off by using a custom task to load the current package
path into a variable, and then prefixing the relative paths of the other
packages with this variable... I would think that the current working
directory of the package process is determined by the process calling the
package, and not where the package itself is located.


Regards,
Nils Magnus Englund

<matt.karriker (AT) blackbaud (DOT) com> wrote

Quote:
I want to use execute pacakge tasks in my SSIS solution so that when a
package is called the relative path of the parent package is used to
locate the child package. My first attempt to do this was to remove
the hard coded path when setting up the file connection,
C:\Package1.dtsx replaced with Package1.dtsx. While this works when
executing via designer when executed via dtexecui the connection fails.
Any advice on this one. I am sure there something I am missing but
being new to SSIS I am not sure what i am missing.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.