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

Eexcute SQL Task not passing its result set to the flow of the package.

$
0
0

Hi,

I need some help in the Control Flow of SSIS package.

Here is what i am doing,

I have two variables A , B which stores the count of a records from table A and table B respectively.

The results of two Execute SQL Tasks are stored both A and B variables.

I set up another variable C which holds the variable difference (A - B).

If the difference is not equal to zero i should execute another package task.

If the difference is equal to zero i should sleep for 5 min.

For the precedence constraints, I set up an expression evaluation to "Expression and Constraint", and set the expression @C !=0 for executing another package task below it. The other precedence precedence constraint is set to evaluate"Expression and COnstraint" with expression @C == 0.

I checked the variables values using the messagebox of Script task and when i execute the package, the precedence constraint is always evaluating to zero even if there is a difference between two variables A and B (which is nothing but C is not equal to 0).  

Can someone please help me in configuring the control flow of the above issue?

Your help is really appreciated.



Viewing all articles
Browse latest Browse all 24688

Trending Articles