dbTalk Databases Forums  

Executing a Task from a Task??? (same package)

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


Discuss Executing a Task from a Task??? (same package) in the microsoft.public.sqlserver.dts forum.



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

Default Executing a Task from a Task??? (same package) - 12-18-2003 , 06:25 AM






I need a Package that loops through a recordset containing tablenames
that have to be transferred to another server.

I've so far created a task that returns the table names to a
globalvariable, a task that loops through the variable setting a
"createtable if not exists.." on a SQLTask and then set the datapump
source and destination tablenames to be transferred. My problem comes
when I need to execute the ExeSQl task and datapump task within the
ActiveX script loop task!

Can anyone tell me how to execute a task within task (ActiveX script)?

Many Thanks in advance

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Executing a Task from a Task??? (same package) - 12-18-2003 , 07:16 AM






You can execute a package from a task -
Execute a package from a package
(http://www.sqldts.com/default.aspx?215)

You could even call another tasks related step Execute method.

The best way I think is to take the loop out into the package itself, using
workflow, not just a single task. This way you can loop around as many task
as you want.

How to loop through a global variable Rowset
(http://www.sqldts.com/default.aspx?298)

Looping, Importing and Archiving
(http://www.sqldts.com/default.aspx?246)


--
Darren Green
http://www.sqldts.com


"Barry" <barryjarcher (AT) hotmail (DOT) com> wrote

Quote:
I need a Package that loops through a recordset containing tablenames
that have to be transferred to another server.

I've so far created a task that returns the table names to a
globalvariable, a task that loops through the variable setting a
"createtable if not exists.." on a SQLTask and then set the datapump
source and destination tablenames to be transferred. My problem comes
when I need to execute the ExeSQl task and datapump task within the
ActiveX script loop task!

Can anyone tell me how to execute a task within task (ActiveX script)?

Many Thanks in advance



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.