dbTalk Databases Forums  

SSIS Execute Process Task Variables

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


Discuss SSIS Execute Process Task Variables in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
js
 
Posts: n/a

Default SSIS Execute Process Task Variables - 12-14-2005 , 02:33 PM






I have a need to pass an argument to an executable in an SSIS package. The
value of the argument is not static, it will vary at execution time, so I
need to pass the value of an SSIS variable as the argument to the exe in the
Execute Process Task

As an example I can define my executable as "C:\Windows\Notepad.exe". I
want my argument to be the value stored in the variable User::Source. I've
tried different methods to pass this such as "@[User::Source]" which should
evaluate to "C:\temp\input.txt", but no matter what I do it always passes the
literal value such as "@[User::Source]"

This seems a simple thing so I expect I'm just missing something. Can
anyone point out what I need to do to make this work?

Thanks

js



Reply With Quote
  #2  
Old   
js
 
Posts: n/a

Default RE: SSIS Execute Process Task Variables - 12-14-2005 , 06:24 PM






Problem solved. Sure enough, publicly proclaim your ignorance (mine
actually) and the answer will come...

For my example below I don't have to put anything in the "Arguments"
property. What I needed to do was put "User::Source" in the
"StandardInputVariable" property (which I had tried) and leave the arguments
property blank (which I hadn't tried). I'm guessing the arguments property
is for command line switches of constant value such as "/F". I can state
with certainty that it isn't for parameter values.

Thanks,

js


"js" wrote:

Quote:
I have a need to pass an argument to an executable in an SSIS package. The
value of the argument is not static, it will vary at execution time, so I
need to pass the value of an SSIS variable as the argument to the exe in the
Execute Process Task

As an example I can define my executable as "C:\Windows\Notepad.exe". I
want my argument to be the value stored in the variable User::Source. I've
tried different methods to pass this such as "@[User::Source]" which should
evaluate to "C:\temp\input.txt", but no matter what I do it always passes the
literal value such as "@[User::Source]"

This seems a simple thing so I expect I'm just missing something. Can
anyone point out what I need to do to make this work?

Thanks

js



Reply With Quote
  #3  
Old   
Adrian
 
Posts: n/a

Default RE: SSIS Execute Process Task Variables - 01-06-2010 , 06:42 PM



You will need to add the variable in the Arguments property of the Expressions for the Property Task.
Just select the task, and in properties open up the Expressions. Choose Arguments and put in your variable there.

From http://www.developmentnow.com/g/103_...-Variables.htm

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/

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.