dbTalk Databases Forums  

dso clone cube

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss dso clone cube in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PCH
 
Posts: n/a

Default dso clone cube - 03-01-2004 , 07:40 PM






running olap sp3, sqlserver 2k sp3 (server and client).

I have a cube with 5 dimensions, all private. 3 of the dimensions join the
fact table to other support tables...basic star schema.

I can clone the cube and all its members and properties fine. I then update
the sourcetable, fromclause and join clauses to the new fact table.

I cannot process the cube because the dimesions that join the support tables
in the new cube still have their sql queries going back to the original fact
table!!!

I tried looping through each dimension in the new cube and change the from
cause, but I get an error "Object doesn't support this action".

I also tried looping through the old cubes dimensions, and creating new
dimesions for the new cube, and then cloning the dimesion from the old
dimension.. similar error though.

How can I change the dimesions from the old fact table to the new 1?



Reply With Quote
  #2  
Old   
PCH
 
Posts: n/a

Default Re: dso clone cube - 03-02-2004 , 02:56 PM






I've gotten down to what I think is the last step in copying a cube.

I can close it, update all the fact/source table properties, then update the
private dimesions fact/source table properties, and now I'm down to the
levels of the dimesions.

It appears that the MemberKeyColumn option actually affects the
MemberNameColumn!

I can change the Name column to the new table, but not the key.

And if I only change the Key, when it updates, the Name is changed, and not
the key, even thought I didnt change the Name!

Any ideas?

Heres a piece of the code:

For Each dsoLevel In dsoDim.Levels

dsoLevel.MemberKeyColumn = dsoLevel.MemberKeyColumn.Replace("Base",
FACT_Table)



dsoDim.Update()

Next


"PCH" <pch12 (AT) hotmail (DOT) com> wrote

Quote:
running olap sp3, sqlserver 2k sp3 (server and client).

I have a cube with 5 dimensions, all private. 3 of the dimensions join
the
fact table to other support tables...basic star schema.

I can clone the cube and all its members and properties fine. I then
update
the sourcetable, fromclause and join clauses to the new fact table.

I cannot process the cube because the dimesions that join the support
tables
in the new cube still have their sql queries going back to the original
fact
table!!!

I tried looping through each dimension in the new cube and change the from
cause, but I get an error "Object doesn't support this action".

I also tried looping through the old cubes dimensions, and creating new
dimesions for the new cube, and then cloning the dimesion from the old
dimension.. similar error though.

How can I change the dimesions from the old fact table to the new 1?





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.