Advertisement

04.09.2008 at 06:28AM PDT, ID: 23308031
[x]
Attachment Details

Slowly Changing Dimension

Asked by chapmandew in OLAP, Databases Miscellaneous, MS SQL Server

Tags: SCD, SSIS, Datawarehouse, Replication

For dimension tables, what is the generally accepted way to track changes in the tables so that I can use them for a Slowly Changing Dimension.  IMO, there are a few options.  

1.  Use the SCD Wizard in SSIS.  I've used this, and it is OK.  However, I don't know that I like the idea of how it performs...just checking the values in my dimension table w/ the values from my ODS table....
2.  Programmatically update a field when a record is updated so that I know to add it to my SCD logic.  The pain with this is that it adds a layer of complexity somewhere, whether it be inside of a trigger or inside of program code.
3.  Using replication.  I've been toying with this idea, although it has its drawbacks.  When a record is updated/inserted/deleted from a replicated table, replication on the subscriber (depending onhow you have it setup) runs a procedure(s) to update the record on the db to replicate the changes.  I've considered adding logic to these procedures to just update a field in a table.  The problem with that is what would happen if the snapshot was reinitialized.  To ensure data is not lost in that case, another table would need to be on the subscriber that could keep track/reconcile these data changes.

Anyways, enough of the rambling.  Id love to hear comments from others as to how they have done this, anything I may have missed, recommendations, etc.

Thanks,
TimStart Free Trial
 
Loading Advertisement...
 
[+][-]04.09.2008 at 06:40AM PDT, ID: 21314723

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: OLAP, Databases Miscellaneous, MS SQL Server
Tags: SCD, SSIS, Datawarehouse, Replication
Sign Up Now!
Solution Provided By: PedroCGD
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.09.2008 at 06:44AM PDT, ID: 21314770

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 07:11AM PDT, ID: 21315056

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04.09.2008 at 07:15AM PDT, ID: 21315111

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 07:25AM PDT, ID: 21315221

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 07:33AM PDT, ID: 21315315

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 07:34AM PDT, ID: 21315327

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 07:39AM PDT, ID: 21315387

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 07:52AM PDT, ID: 21315539

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 07:54AM PDT, ID: 21315566

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906