SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Load dim Table using Lookup


Load dim Table using Lookup

Author
Message
Sathish Kumar. Rajaram
Sathish Kumar. Rajaram
SSC Veteran
SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)SSC Veteran (233 reputation)

Group: General Forum Members
Points: 233 Visits: 54
Hi,

I am a newbie currently trying handson on desinging SSIS and Star schema.

I have 2 tables Location (LocID, LocName) and Center (CenterID, CenterName, LocID). I have designed dimension tables as dimLocation (LocKey, LocID, LocName) and dmCenter (CenterKey, CenterID, CenterName, LocKey)

I have created a SSIS package to load dimLocation and dimCenter (without LocKey) tables. Now I wanted to load dimCenter table with LocKey lookup.

Please help, suggest how I can load my dimCenter table.

Thanks
Sathish

S A T ...
Sathish's Blog
Rob Taylor
Rob Taylor
Hall of Fame
Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)Hall of Fame (3.8K reputation)

Group: General Forum Members
Points: 3790 Visits: 1616
Sathish Kumar. Rajaram (4/15/2013)
Hi,

I am a newbie currently trying handson on desinging SSIS and Star schema.

I have 2 tables Location (LocID, LocName) and Center (CenterID, CenterName, LocID). I have designed dimension tables as dimLocation (LocKey, LocID, LocName) and dmCenter (CenterKey, CenterID, CenterName, LocKey)

I have created a SSIS package to load dimLocation and dimCenter (without LocKey) tables. Now I wanted to load dimCenter table with LocKey lookup.

Please help, suggest how I can load my dimCenter table.

Use the Lookup transformation to get the LocKey from your DimLocation table and add it to your flow. Then write these values to your DimCenter table. Your SELECT in the lookup transformation would be:
SELECT LocKey, LockId FROM DimLocation;



Pretty straight forward.

What about the lookup transformation is causing you trouble?

Rob
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search