sql server - SSIS result set fed in parallel to stored procedure -


i have 2 stored procedures ...

stored proc #1 returns list of products based on range of criteria

stored proc #2 accepts single productid , performs complex query logic , writes results table

my problem there on 30,000 products , going through result set stored proc #1 1 @ time slow , can't integrate entire batch call stored procedure #2

my question follows: using ssis there way setup task take result set stored procedure #1 , call stored procedure #2 in parallel each row.

example of stored proc 1 result set ----------------------------------- product id ---------- abc123 xyz987 aaabbb cccddd eeefff  need setup ssis call following in parallel: ------------------------------------------------------- exec storedproc2 'abc123' exec storedproc2 'xyz987' exec storedproc2 'aaabbb' exec storedproc2 'cccddd' exec storedproc2 'eeefff' 

ouch, that's many executions of sp #2. can though.

create data flow task. add ole db source component data flow. edit component , configure execute sp #1. can view columns in editor see output component.

add ole db command data flow transformation component. create link first component ole db command component. edit component , enter sql statement run sp #2 in sqlcommand property on component properties tab. include question marks (?) each parameter sp.

select column mappings tab. associate input column each parameter.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -