Resetting Dimension Surrogate Keys
2 posters
Page 1 of 1
Resetting Dimension Surrogate Keys
Hi
I have recently come across a situation where some dimensions and fact tables are truncate and re-populated.
Since the surrogate keys were defined as identity integers some of the dimension members now have different surrogate keys than what they had originally.
This presents a problem when using reporting software that stores the surrogate key when a filter is set.
I know of two strategies to overcome this:
1. rather use MERGE statements in Sql Server 2008 to update / expire records (instead of repopulating the dimension completely)
2. generating surrogate keys internally comprising some business key in conjunction with a source key
Any thoughts on this?
I have recently come across a situation where some dimensions and fact tables are truncate and re-populated.
Since the surrogate keys were defined as identity integers some of the dimension members now have different surrogate keys than what they had originally.
This presents a problem when using reporting software that stores the surrogate key when a filter is set.
I know of two strategies to overcome this:
1. rather use MERGE statements in Sql Server 2008 to update / expire records (instead of repopulating the dimension completely)
2. generating surrogate keys internally comprising some business key in conjunction with a source key
Any thoughts on this?
ian.coetzer- Posts : 57
Join date : 2010-05-31
Age : 44
Location : South Africa
Re: Resetting Dimension Surrogate Keys
I would never truncate and repopulate a dimension table as an ongoing process. Change the code and perform proper updates on the dimension.
Facts are less of an issue.
Facts are less of an issue.
ian.coetzer- Posts : 57
Join date : 2010-05-31
Age : 44
Location : South Africa
Similar topics
» Surrogate Keys in ODS and Dimension
» Surrogate keys and Dimension-to-Dimension links
» Surrogate keys in dimension and fact table
» Textual values in dimension tables
» No Surrogate keys
» Surrogate keys and Dimension-to-Dimension links
» Surrogate keys in dimension and fact table
» Textual values in dimension tables
» No Surrogate keys
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|