dbTalk Databases Forums  

Execute Package based on SQL output?

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


Discuss Execute Package based on SQL output? in the microsoft.public.sqlserver.dts forum.



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

Default Execute Package based on SQL output? - 03-13-2006 , 08:55 PM






I am creating a DTS package to execute a second DTS package conditionaly if a
row exists in table. How can I get an output parameter out of an "execute
SQL Task" and do conditional workflow based on the value?

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

Default Re: Execute Package based on SQL output? - 03-14-2006 , 01:04 AM






You could use the Execute SQL Task and it's output parameyter support to get
the value out and into a variable. You could then use a Workflow script on
the following Execute Package Task to check the variable and return the
correct constant.

This has a simple example of workflow script if you need some more info-
How can I check if a file exists?
(http://www.sqldts.com/default.aspx?211)

--
Darren
http://wiki.sqlis.com | http://www.sqlis.com | http://www.sqldts.com

"Dan" <Dan (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am creating a DTS package to execute a second DTS package conditionaly if
a
row exists in table. How can I get an output parameter out of an "execute
SQL Task" and do conditional workflow based on the value?



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.