dbTalk Databases Forums  

Pass parameter

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


Discuss Pass parameter in the microsoft.public.sqlserver.dts forum.



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

Default Pass parameter - 10-18-2004 , 07:25 PM






In a DTS, I would like to pass a global varible value "TestDdate" to a
Execute Process Task(win32 process)as a parameter, then the task call a batch
file which rename a file name to Testdate+2004.txt. Testdate is a gloable
variable, data format like 1019.


How can I achieve this?

Is it possible to set the paramenter of "Execute Process Task(win32 process)"
with the value get form package global variables?
I saw the task has a paramter input box, what is the format for me to put my
testdate there?

Thanks.

Reply With Quote
  #2  
Old   
Sue Hoegemeier
 
Posts: n/a

Default Re: Pass parameter - 10-20-2004 , 11:04 AM






You can use the Dynamic Properties task to set the ProcessCommandLine
property of the Execute Process task. Parameters are just appended to
the end of the command being executed in the ProcessCommandLine
property. Whatever format is used for the parameters depends on what
you are calling.
If your goal is to just rename a file and use a global variable, you
can also use an AxtiveX script task and FileSystemObject to rename the
file. You can find an example of doing this at sqldts.com:
http://www.sqldts.com/default.aspx?292

-Sue

On Mon, 18 Oct 2004 17:25:02 -0700, Ann
<Ann (AT) discussions (DOT) microsoft.com> wrote:

Quote:
In a DTS, I would like to pass a global varible value "TestDdate" to a
Execute Process Task(win32 process)as a parameter, then the task call a batch
file which rename a file name to Testdate+2004.txt. Testdate is a gloable
variable, data format like 1019.


How can I achieve this?

Is it possible to set the paramenter of "Execute Process Task(win32 process)"
with the value get form package global variables?
I saw the task has a paramter input box, what is the format for me to put my
testdate there?

Thanks.


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

Default RE: Pass parameter - 10-20-2004 , 11:47 AM



Thank you. It's very helpful

"Ann" wrote:

Quote:
In a DTS, I would like to pass a global varible value "TestDdate" to a
Execute Process Task(win32 process)as a parameter, then the task call a batch
file which rename a file name to Testdate+2004.txt. Testdate is a gloable
variable, data format like 1019.


How can I achieve this?

Is it possible to set the paramenter of "Execute Process Task(win32 process)"
with the value get form package global variables?
I saw the task has a paramter input box, what is the format for me to put my
testdate there?

Thanks.

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.