Which value for the evaluation operation should you use?

HOTSPOT
You are developing a SQL Server Integration Services (SSIS) package. An Execute SQL
task in the package checks product stock levels and sets a package variable named InStock
to TRUE or FALSE depending on the stock level found.
After the successful execution of the Execute SQL task, one of two data flow tasks must run,
depending on the value of the InStock variable.
You need to set the precedence constraints.
Which value for the evaluation operation should you use? (To answer, select the appropriate
option for the evaluation operation in the answer area.)

HOTSPOT
You are developing a SQL Server Integration Services (SSIS) package. An Execute SQL
task in the package checks product stock levels and sets a package variable named InStock
to TRUE or FALSE depending on the stock level found.
After the successful execution of the Execute SQL task, one of two data flow tasks must run,
depending on the value of the InStock variable.
You need to set the precedence constraints.
Which value for the evaluation operation should you use? (To answer, select the appropriate
option for the evaluation operation in the answer area.)

Answer:



Leave a Reply 3

Your email address will not be published. Required fields are marked *


John Sno

John Sno

expression
e.g. @[User::VariableName]=InstockVariableValue

vyzhiga

vyzhiga

For example, https://www.simple-talk.com/sql/ssis/working-with-precedence-constraints-in-sql-server-integration-services/

Expression and Constraint: The precedence constraint is evaluated based on both the Value property and the expression. Both must evaluate to true for the constrained executable to run. For example, in the PrecedenceConstraints.dtsx package, the first Execute SQL task must run successfully and the expression must evaluate to true for the precedence constraint to evaluate to true and the constrained executable to run.

vyzhiga

vyzhiga

What if Execute SQL task will fail? Should SSIS process go further or it’s better to stop and redo package again? So may be option ‘expression and constraint’ look reasonable?