Groups | Blog | Home
all groups > sql server dts > may 2007 >

sql server dts : Conditional WorkFlow


Bob McClellan
5/23/2007 12:00:00 AM
I have an SSIS package that emails a spreadsheet exception report.
Naturally, I only want to send it, if there are exceptions.
What can I use to query for the exception and only allow the workflow if
Count(exception) > 0

thanks in advance,
Fredy (Co)
5/23/2007 6:40:01 AM
you can use a variable that receives the value of Count(exception).. then,
you can evaluate that value in the precedende constraint and redirect the
control flow....

Saludos desde Colombia...
---
Fredy (Co)

[quoted text, click to view]
Fredy (Co)
5/23/2007 10:10:01 AM
hello, Bob...

look: in order to pass the variable to the constraint, you must use
doubleclick on the constraint, then, you must select evaluation operation:
expression and constraint, and then put in the expression box, the evaluation
of the variable: @my_var= something... or the evaluation that you need...

be carefull with the logic of multiple constrainst, because they must be the
same for "incoming" constraints...

Saludos desde Colombia...
---
Fredy (Co)

[quoted text, click to view]
Bob McClellan
5/23/2007 11:25:40 AM
Thanks Freddy!
I have been trying to understand how to pass the variable to the constraint.
That's the essence of my question. Any references you can suggest would
be much appreciated. BOL is NOT getting me there.

thanks again,
bob.

[quoted text, click to view]
Bob McClellan
5/24/2007 1:01:00 PM
Thanks for the reply and the help Freddy.


[quoted text, click to view]
AddThis Social Bookmark Button