I have a table of 900 records. I want to get 10 records at a time and assign it to variable. Next time when I run the for each loop task in SSIS, it will loop another 10 records and overwrite the variable. Any help will be highly appreciated.
I have table like this for e.g
EMPID
0001
00045
00067
00556
00078
00345
00002
00004
00005
00006
00007
00008
this is want I have tried execute sql task to pull 900 records to variable, connect Execute sql task to For each loop, inside for each loop have Data flow task, the source has sql query and destination is table.
select * from Dbo.JPKGD0__STP
where EMPID in ?
but this will pass each empid in 1
loop , so i wanted to pass 10 empids each time.
Please let me know if I need to use different approach/or other tasks to achieve this.