DTSPrecedenceEvalOp Enumeration

 

Indicates the evaluation operations that the precedence constraint uses.

Namespace:   Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

public enum class DTSPrecedenceEvalOp

Member nameDescription
Constraint

Specifies that the execution outcome determines whether the constrained container or task runs. Set the Value property of the PrecedenceConstraint to the desired value from the DTSExecResult enumeration.

Expression

Specifies that the value of an expression determines whether the constrained container or task runs. Set the Expression property of the PrecedenceConstraint.

ExpressionAndConstraint

Specifies that the constraint outcome must occur and the expression must evaluate for the constrained container or task to run. Set both the Value and the Expression properties of the PrecedenceConstraint, and set its LogicalAnd property to true.

ExpressionOrConstraint

Specifies that either the constraint outcome must occur, or the expression must evaluate, for the constrained container or task to run. Set both the Value and the Expression properties of the PrecedenceConstraint, and set its LogicalAnd property to false.

The precedence item is the task or container whose expression or execution outcome (completion, success, or failure) determines whether the next task or container, the constrained item, runs. The default value is Constraint. For more information, see Precedence Constraints.

The following code example creates three tasks, and places precedence constraints between them. Using the PrecedenceConstraints collection, it iterates over the constraints in the package, displaying information about each constraint, including the EvalOp property, which contains one of the values from this enumeration. The code example then changes the value of EvalOp using this enumeration.

No code example is currently available or this language may not be supported.

Sample Output:

Contains the constraint between File System and Bulk Insert Tasks? True

Constrained container Microsoft.SqlServer.Dts.Runtime.TaskHost

Evaluation operation Constraint

Evaluates true True

ID {0EDDD5B8-7135-4A73-B240-EDF54C0E66AC}

LogicalAnd True

Precedence Executable Microsoft.SqlServer.Dts.Runtime.TaskHost

-----------------------------------

Constrained container Microsoft.SqlServer.Dts.Runtime.TaskHost

Evaluation operation Constraint

Evaluates true True

ID {80584B94-A3D0-4E08-B9C1-8CCC7BD7D086}

LogicalAnd True

Precedence Executable Microsoft.SqlServer.Dts.Runtime.TaskHost

-----------------------------------

Evaluation operation after Expression

Return to top
Show: