Question : 500 points: In SSIS, how to pass parameters into Data Flow Task

I have a DTS package of SQL server 2000 which has two "Execute SQL Task", which gets maximum ID (call it maxID1) from table1 in mysql and maximum ID (call it maxID2) from table 2 in sql server.  Those 2 as global variables passes into a data flow which grabs all data from mysql's table1 with its ID > maxID2 and ID <= maxID1 and insert into SQL server table3.  This package is working so far.

My question is how to achieve the same thing in SSIS? I created two "Execute SQL Task", which will get maxID1 and maxID2, and one "Data Flow Task". But how to pass those 2 parameters into that "Data Flow Task" without using "Script Task"?

 

Anyone could help? Thanks!

Answer : 500 points: In SSIS, how to pass parameters into Data Flow Task

PAQed with points refunded (500)

Computer101
EE Admin
Random Solutions  
 
programming4us programming4us