Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Logic issue for precedence constraint

$
0
0

I have two sequence containers “A” and “B” in package “Z”. They run from a preceding expression task which sets a variable value. Depending on the value set in the expression task:

  1.       Only “A” sequence container can run.
  2.       Both “A” and “B” sequence containers can run in parallel.

 Next, there is an Execute SQL task “C” that follows immediately afterwards. It is the “constrained executable” which follows “A” and “B”. If both “A” and “B” are determined to run, they must both finish (“success”) before “C” runs.  In the constraint editor for precedence constraints for the constrained executable “C” we use a logical “AND” to ensure that is what occurs.  How do we get “C” to execute if only “A” is executed.   The logical “AND” keeps “C” from executing if “B” doesn’t execute. Which is a condition  we may optionally want.  Can we dynamically alter the constraints “LogicalAnd” propert y, depending on the variable value?    Am I missing something? Am I going down a fruitless rabbit hole for trying to alter the constraints at run time?  thanks Michael


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>