dbTalk Databases Forums  

Execute package from within a package?

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


Discuss Execute package from within a package? in the microsoft.public.sqlserver.dts forum.



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

Default Execute package from within a package? - 06-13-2005 , 04:16 PM






I have a DTS package (DTS#1) that has an ActiveX script that compares two
values to determine whether package DTS#2 should be executed or not. Does
anyone have an example of how to execute a package from within an ActiveX
script or is there a better way to handle this?

TIA. Chris.

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

Default Re: Execute package from within a package? - 06-13-2005 , 04:54 PM






You can either use the ExecutePackage task or you can call the object model
in you ActiveX script as you mention. Have a look here

Execute a package from a package
(http://www.sqldts.com/default.aspx?215)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Chris W" <ChrisW (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have a DTS package (DTS#1) that has an ActiveX script that compares two
values to determine whether package DTS#2 should be executed or not. Does
anyone have an example of how to execute a package from within an ActiveX
script or is there a better way to handle this?

TIA. Chris.



Reply With Quote
  #3  
Old   
Chris W
 
Posts: n/a

Default Re: Execute package from within a package? - 06-14-2005 , 08:25 AM



The ActiveX script worked like a charm...thanks!

"Allan Mitchell" wrote:

Quote:
You can either use the ExecutePackage task or you can call the object model
in you ActiveX script as you mention. Have a look here

Execute a package from a package
(http://www.sqldts.com/default.aspx?215)

--



Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - You thought DTS was good. here we show you the new stuff.
www.konesans.com - Consultancy from the people who know


"Chris W" <ChrisW (AT) discussions (DOT) microsoft.com> wrote in message
news:C8931D6E-61B8-41EC-A6AF-EF3E89E21E60 (AT) microsoft (DOT) com...
I have a DTS package (DTS#1) that has an ActiveX script that compares two
values to determine whether package DTS#2 should be executed or not. Does
anyone have an example of how to execute a package from within an ActiveX
script or is there a better way to handle this?

TIA. Chris.




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.