Execute SSIS Package based on a Flag bit -
how execute ssis package based on flag bit present in table.
what understand is, need create variable , assigned value in sql server table.
and use precedence constraints control flow.
if flag bit "0" run , make 1 @ end, if "1" should not running package still package should completing success
how accomplish this?
you can run execute sql task value sql server table. value can assigned variable in task. execute sql task should first task run.
create precedence constraint execute sql task , task run if flag bit set run. can selecting execute sql task , dragging green arrow next task.
right-click on new precedence constraint line , select edit. in constaint options panel, set evaluation operation "expression , constraint". leave value option "success". enter @[myvariable] == 0
in expression field, myvariable
name of variable contains flag bit value.
when package runs, stop if conditions in precedence constraint not met.
Comments
Post a Comment