SSIS 2008: Replacing Natural Keys With Surrogate Keys
4 posters
Page 1 of 1
SSIS 2008: Replacing Natural Keys With Surrogate Keys
I am building a package in SSIS 2008 and I need to replace the natural dimension keys in my fact table with the surrogate keys in the dimension tables. Each fact has 7 date dimensions, 6 time dimensions and other dimensions.
Is there a method of updating common dimension fields, i.e. all date or time fields, using one lookup transformation or do I need a lookup transformation for each field?
Is there a method of updating common dimension fields, i.e. all date or time fields, using one lookup transformation or do I need a lookup transformation for each field?
djphatic- Posts : 20
Join date : 2012-04-21
Re: SSIS 2008: Replacing Natural Keys With Surrogate Keys
You need to use a Lookup transformation for each.
Re: SSIS 2008: Replacing Natural Keys With Surrogate Keys
Yes you need a lookup for each one, but I think his question was more tuned toward performance. Do those 7 date dimension lookup transformations actually load the date dimension 7 times? If so, I believe he is looking for a way to not have it load 7 times.
TheNJDevil- Posts : 68
Join date : 2011-03-01
Re: SSIS 2008: Replacing Natural Keys With Surrogate Keys
Use the Cache Transform as a source in a Data Flow. Then point your lookup to the Cache.
Re: SSIS 2008: Replacing Natural Keys With Surrogate Keys
I think you will have to have 7 cache files as I think you can only use a cache file once per package.
blynch- Posts : 18
Join date : 2011-10-16
Re: SSIS 2008: Replacing Natural Keys With Surrogate Keys
Nope.
I just tested it and loaded two tables with the same cache.
I just tested it and loaded two tables with the same cache.
Re: SSIS 2008: Replacing Natural Keys With Surrogate Keys
Within the same package? I want that to work for me. Will have to look into that, thanks.
blynch- Posts : 18
Join date : 2011-10-16
Similar topics
» Surrogate vs natural keys and smart columns
» Business keys or Natural keys in the Fact table
» SCD Type 1 and 2
» SSIS and the SQL 2008 MERGE Statement for Insert, Update and Delete
» Audit Dimensions in SQL/SSIS 2008
» Business keys or Natural keys in the Fact table
» SCD Type 1 and 2
» SSIS and the SQL 2008 MERGE Statement for Insert, Update and Delete
» Audit Dimensions in SQL/SSIS 2008
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum