dbTalk Databases Forums  

Execute Process Task. How to use a parameter from a previous task?

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


Discuss Execute Process Task. How to use a parameter from a previous task? in the microsoft.public.sqlserver.dts forum.



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

Default Execute Process Task. How to use a parameter from a previous task? - 11-04-2005 , 05:41 PM






I have a dts package that creates a CSV file including today's date in
the filename. Once the file is created, I plan use an Execute Process
Task to call an app (ws ftp) that uploads the file to an ftp server.

I want to specify this filename as a parameter in the Execute Process
Task so I can upload the file that has just been created by the
previous ActiveX task.

How would I do that?
Thanks
Leslie



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Execute Process Task. How to use a parameter from a previous task? - 11-05-2005 , 03:25 AM






You could use something like this

How to manipulate the Execute Process task.
(http://www.sqldts.com/default.aspx?251)

Allan

"les" <les> wrote


Quote:
I have a dts package that creates a CSV file including today's date in
the filename. Once the file is created, I plan use an Execute Process
Task to call an app (ws ftp) that uploads the file to an ftp server.

I want to specify this filename as a parameter in the Execute Process
Task so I can upload the file that has just been created by the
previous ActiveX task.

How would I do that?
Thanks
Leslie


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

Default Re: Execute Process Task. How to use a parameter from a previous task? - 11-05-2005 , 10:00 AM



Thanks Allan, this function looks like it may be what I need, but
where do I enter it, and how do I refer to it in the Execute Process
task?

Thanks
Leslie


On Sat, 5 Nov 2005 09:25:44 +0000, "Allan Mitchell"
<allan (AT) no-spam (DOT) sqldts.com> wrote:

Quote:
You could use something like this

How to manipulate the Execute Process task.
(http://www.sqldts.com/default.aspx?251)

Allan

"les" <les> wrote in message
news:0lrnm15pa9bov033qjvgdoj07iifpgbvh0 (AT) 4ax (DOT) com:

I have a dts package that creates a CSV file including today's date in
the filename. Once the file is created, I plan use an Execute Process
Task to call an app (ws ftp) that uploads the file to an ftp server.

I want to specify this filename as a parameter in the Execute Process
Task so I can upload the file that has just been created by the
previous ActiveX task.

How would I do that?
Thanks
Leslie


Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Execute Process Task. How to use a parameter from a previous task? - 11-05-2005 , 10:45 AM



You use this script in an Active X Script task and it goes before the
ExecuteProcess task. The ExecuteProcess task does not need to know
about the script. The script is telling the ExecuteProcess task what it
will do.

Allan

"les" <les> wrote


Quote:
Thanks Allan, this function looks like it may be what I need, but
where do I enter it, and how do I refer to it in the Execute Process
task?

Thanks
Leslie


On Sat, 5 Nov 2005 09:25:44 +0000, "Allan Mitchell"
allan (AT) no-spam (DOT) sqldts.com> wrote:


You could use something like this

How to manipulate the Execute Process task.
(http://www.sqldts.com/default.aspx?251)

Allan

"les" <les> wrote in message
news:0lrnm15pa9bov033qjvgdoj07iifpgbvh0 (AT) 4ax (DOT) com:


I have a dts package that creates a CSV file including today's date
in
the filename. Once the file is created, I plan use an Execute Process
Task to call an app (ws ftp) that uploads the file to an ftp server.

I want to specify this filename as a parameter in the Execute Process
Task so I can upload the file that has just been created by the
previous ActiveX task.

How would I do that?
Thanks
Leslie


Reply With Quote
  #5  
Old   
les
 
Posts: n/a

Default Re: Execute Process Task. How to use a parameter from a previous task? - 11-05-2005 , 12:22 PM



That's great. Presumably I refer to the name of my execute process
task in the script:
set cus = pkg.Tasks("DTSTask_DTSCreateProcessTask_1").Custom task



On Sat, 5 Nov 2005 16:45:59 +0000, "Allan Mitchell"
<allan (AT) no-spam (DOT) sqldts.com> wrote:

Quote:
You use this script in an Active X Script task and it goes before the
ExecuteProcess task. The ExecuteProcess task does not need to know
about the script. The script is telling the ExecuteProcess task what it
will do.

Allan

"les" <les> wrote in message
news:2llpm1p2l1dtkl3554kvh08d47r59dcprh (AT) 4ax (DOT) com:

Thanks Allan, this function looks like it may be what I need, but
where do I enter it, and how do I refer to it in the Execute Process
task?

Thanks
Leslie


On Sat, 5 Nov 2005 09:25:44 +0000, "Allan Mitchell"
allan (AT) no-spam (DOT) sqldts.com> wrote:


You could use something like this

How to manipulate the Execute Process task.
(http://www.sqldts.com/default.aspx?251)

Allan

"les" <les> wrote in message
news:0lrnm15pa9bov033qjvgdoj07iifpgbvh0 (AT) 4ax (DOT) com:


I have a dts package that creates a CSV file including today's date
in
the filename. Once the file is created, I plan use an Execute Process
Task to call an app (ws ftp) that uploads the file to an ftp server.

I want to specify this filename as a parameter in the Execute Process
Task so I can upload the file that has just been created by the
previous ActiveX task.

How would I do that?
Thanks
Leslie


Reply With Quote
  #6  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Execute Process Task. How to use a parameter from a previous task? - 11-05-2005 , 12:35 PM



Correct. Your task name may not be the same as the one I used in the
article.

Allan

"les" <les> wrote


Quote:
That's great. Presumably I refer to the name of my execute process
task in the script:
set cus = pkg.Tasks("DTSTask_DTSCreateProcessTask_1").Custom task



On Sat, 5 Nov 2005 16:45:59 +0000, "Allan Mitchell"
allan (AT) no-spam (DOT) sqldts.com> wrote:


You use this script in an Active X Script task and it goes before the
ExecuteProcess task. The ExecuteProcess task does not need to know
about the script. The script is telling the ExecuteProcess task what
it
will do.

Allan

"les" <les> wrote in message
news:2llpm1p2l1dtkl3554kvh08d47r59dcprh (AT) 4ax (DOT) com:


Thanks Allan, this function looks like it may be what I need, but
where do I enter it, and how do I refer to it in the Execute Process
task?

Thanks
Leslie


On Sat, 5 Nov 2005 09:25:44 +0000, "Allan Mitchell"
allan (AT) no-spam (DOT) sqldts.com> wrote:



You could use something like this

How to manipulate the Execute Process task.
(http://www.sqldts.com/default.aspx?251)

Allan

"les" <les> wrote in message
news:0lrnm15pa9bov033qjvgdoj07iifpgbvh0 (AT) 4ax (DOT) com:



I have a dts package that creates a CSV file including today's
date

in

the filename. Once the file is created, I plan use an Execute
Process
Task to call an app (ws ftp) that uploads the file to an ftp
server.

I want to specify this filename as a parameter in the Execute
Process
Task so I can upload the file that has just been created by the
previous ActiveX task.

How would I do that?
Thanks
Leslie


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.