all groups > sql server data warehouse > october 2004 >
You're in the

sql server data warehouse

group:

SSABI: SCD insert or update behaviour



SSABI: SCD insert or update behaviour Eugene Frolov
10/29/2004 10:21:28 AM
sql server data warehouse: Hi, All!

I need to help on this problem:
there is a dimension table with this structure in the Staging DB -

Customer_Code nvarchar(50)
Customer_Name nvarchar(50)
SalesPerson_Code nvarchar(50)

Lets imagine I'm having customer record like this:

123 'Horns and hoofs Inc.' 'Mr. Gorbachiov'

After Muster_Update.dts package executing it will be copied in the
corresponding table in Subject Matter DB.

100 123 'Horns and hoofs Inc.' 'Mr. Gorbachiov'
'01/01/2000' '06/06/2079' ACTIVE

It's OK.

Some days later source record was changed like this (Customer_Name changed)

123 'Horns and hoofs LTD.' 'Mr. Gorbachiov'

Due to this change I want simply UPDATE EXISTING record in SM DB.

100 123 'Horns and hoofs LTD.' 'Mr. Gorbachiov'
'01/01/2000' '06/06/2079' ACTIVE

But another days later Mr. Gorbachiov has left our company and Mr. Eltsin
became responsible person for working with 'Horns and hoofs LTD.' customer.
This looks like this in Staging DB:

123 'Horns and hoofs LTD.' 'Mr. Eltsin'

And I want to reflect this change in SM DB like this:

100 123 'Horns and hoofs LTD.' 'Mr. Gorbachiov'
'01/01/2000' '01/01/2001' INACTIVE
200 123 'Horns and hoofs LTD.' 'Mr. Eltsin'
'01/01/2001' '06/06/2079' ACTIVE

I. e I want to TRACK history of Sales persons changes associated with every
customer and RESTATE history of Customer_name changes.

Is this possible to configure SSABI generated dts packages or do something
else to support this behaviour?

Thank for advance!


Re: SSABI: SCD insert or update behaviour Dave Wickert [MSFT]
10/29/2004 3:36:20 PM
Sounds like you want a type-1 SCD for the member name; and a type-2 SCD on
member properties.
If so, that is beyond the scope of basic BI Accelerator generated
applications. Sorry, we couldn't do everything :-)
You will have to implement it by-hand after the application is generated.

I would suggest that you generate it as a type-2 SCD (track history) and
then modify the packages so it does a type-1 on a member name change. I
think it would be easier to implement an update in-place if the "track
history" is already there; rather than the other way around.

--
Dave Wickert [MSFT]
dwickert@online.microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.

[quoted text, click to view]

Re: SSABI: SCD insert or update behaviour Eugene Frolov
11/1/2004 9:17:41 AM
Dave! Thank you for attention.

[quoted text, click to view]

Yes, it's correct. And more common: I want to do some dimension level
attributes type 1 SCD and another ones - type 2 SCD.

[quoted text, click to view]

OK, no problem!

[quoted text, click to view]

OK, I'm already found a way to do so by setting type 2 (Flagged) update
algorithm and making some modifications in ActiveX transformaton script of
Update DDQ step in Update Level subpackage.

I'm going to prepare another questions :-)


AddThis Social Bookmark Button