SSIS 2008 lookup -


i use lookup component. when no match output, insert rows target table. update target table rows when lookup matched. how can that?

thx!!

in lookup transformation, map lookup match output ole db command transformation. in ole db command transformation use update statement or stored procedure , map columns accordingly. here link describes how use ole db command transformation.

please note if have many rows update, ole db command transformation might slow down things.

there couple of options:

  1. you can use second lookup transformation between first lookup transformation , ole db command. in second lookup, map columns between source , destination updating including key column , redirect output ole db command if there not matching records.

  2. split output lookup match output multiple outputs using sequence number , have multiple old db command transformations. please find answer in this stack overflow question split output 1 transformation multiple output before redirecting ole db command.

hope helps.


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -