sql server - Loading Fact Table + Lookup / UnionAll for SK lookups -
i got populate facttable 12 lookups dimension table sk's, of 6 different dim tables , rest 6 lookup same dimtable (type ii) doing lookup same natural key.
ex:
primeobjectid => lookup dimobject.objectid => objectsk
and got other columns same
otherobjectid1 => lookup dimobject.objectid => objectsk
otherobjectid2 => lookup dimobject.objectid => objectsk
otherobjectid3 => lookup dimobject.objectid => objectsk
otherobjectid4 => lookup dimobject.objectid => objectsk
otherobjectid5 => lookup dimobject.objectid => objectsk
for such multiple lookup how should go in ssis package.
for using lookup / unionall foreach lookup. there better way this.
i assume doing lookup, errors redirected derived column set default values failed lookups, followed union each of lookup/derived column values. pattern common , use in stages debug. however, since union partially blocking component (ie union creates new buffer when executes, passes data through comes in) in ssis decrease overall efficiency of package due overhead of creating new buffers in data flow. usually, code series of lookups ignore errors , after last one, include derived column component replace default of columns included targets of lookups. allows efficient flow of data through dataflow. more information on data flow components blocking or semi-blocking see post: http://sqlblog.com/blogs/jorg_klein/archive/2008/02/12/ssis-lookup-transformation-is-case-sensitive.aspx
Comments
Post a Comment