Link to home
Start Free TrialLog in
Avatar of tcmmaxt
tcmmaxtFlag for United States of America

asked on

how do you define/wire a precedence constraint condition between two tasks in an SSIS package

Expert: New to SSIS Integration Services Packages.
I have a Execute SQL Task and a Send Mail Task with a precedence constraint between them. I want to know how to create an constraint expression (scalar value?) from the Execute SQL Task query code listed below such that when the query results  sets Email = 1 the constraint  is satisfied and the Send Mail Task executes. Please show me how to create the Constraint Expression.

Part of the "Execute SQL Task"  query code:
UPDATE TableA
SET Email = 1
WHERE 4 <= datediff(hh, startDate, getdate())
etc ...etc.....


ASKER CERTIFIED SOLUTION
Avatar of ISO30
ISO30
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tcmmaxt

ASKER

ISO30: thanks.  I am new to this SSIS stuff. If you can somhow show me how to loop thru records and send out email for those records flagged Email = 1 that would be great since I am not sure  how to do this. Also I guess I would need some kind of  job set-up to run the package say each morning? Also the email messages in body are not status and will need to to reflect data relative to that record. Not sure how to do this?