sql server 2008 r2 - ssis swap some values in a data flow if they match a lookup table -
here's problem - midstream in data flow, have values in 1 column want swap other values based on lookup table.
for example, if had rowset this:
key value 1 2 b 3 4 c 5 d 6 b ... ...
if had lookup table in sql server db looked this:
value1 value2 c y d z
then want package swap values resulting data flow this:
key value 1 2 b 3 4 y 5 z 6 b ... ...
what components produce simplest solution?
you use lookup component , then:
- set ignore failure
- values not match return null lookup value
use derived column expression populate lookup succeeded
isnull(value2) ? value : value2
Comments
Post a Comment