sql server - Using ForLoop Container to do inserts in SSIS -
here's want - have data flow task simple oledb source , destination. oledb source sql query like
select * xyztable id = "uservariable" (integer type variable)
i want put dft in forloop container , provide value of "uservariable" forloop container.
i have made variable "uservariable" int32 , initialized 1 in forloop configuration, have "uservariable <= 30" "evalexpression" , "uservariable = uservariable + 1" "assignexpression". now, how pass "uservariable" in dft?
thanks!
in ole db source, code sql this:
select * xyztable id = ?
then choose parameters button , specify uservariable.
Comments
Post a Comment