SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Change Dimension ID. HOW?


Change Dimension ID. HOW?

Author
Message
VALEK
VALEK
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1226 Visits: 462
Dear people,

in BIDS when you edit a cube, or dimension, there is a property against any dimension called ID
How do I change it?

History: after the migration from msas2000 the wizard created dimensions Period, Period 1 and Period 2 when converting from Period.Company, Period.Financial and Period.Daily.
Now this IDs prevent my web app accessing the dimensions by ID since it assumes the Dimension ID is the same as its name.

Help please.

M.Sc.IT, M.B.A, MCTS BI 2008, MCITP BI 2008, MCTS SQL Dev, CSM, CDVDM
stevefromOZ
stevefromOZ
SSCrazy Eights
SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)SSCrazy Eights (9.5K reputation)

Group: Moderators
Points: 9486 Visits: 3757
Sorry upfront as this isn't a direct answer to the question posted. I would seriously consider changing the model yourself, creating new hierarchies within the one Period dimension.

Steve.
VALEK
VALEK
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1226 Visits: 462
stevefromOZ (6/18/2008)
Sorry upfront as this isn't a direct answer to the question posted. I would seriously consider changing the model yourself, creating new hierarchies within the one Period dimension.

Correct. I was thinking about it, but it would mean SSAS development, possibly ETL development and heaps of Alphablox (JAVA) development to cater for it.
We have more similar problems with other dimensions, Period is just an example.

So, does anyone know?

M.Sc.IT, M.B.A, MCTS BI 2008, MCITP BI 2008, MCTS SQL Dev, CSM, CDVDM
VALEK
VALEK
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1226 Visits: 462
Still the question is up. Even if I rebuild the dimensions and combine them in one with multiple hierarchies, HOW do I change the ID of the dimension?
Changing the name is simple, but it does not update the ID.
Alphablox (IBM web OLAP tool)I believe uses IDs to reference to the dimensions.

Please do not offer me to recreate the dimension

M.Sc.IT, M.B.A, MCTS BI 2008, MCITP BI 2008, MCTS SQL Dev, CSM, CDVDM
VALEK
VALEK
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1226 Visits: 462
I just realised that when you create a new dimension using the wizard there are two options.
When using the first option, (Build dimensions using data source) it assigns the name of the table (view) to the ID of the newly created dimension.
When using the second option (without using data source) it creates New Dimension, New Dimension 1 etc.

how can you:
1. Force it to use a particular name upon creation as ID
2. Change the ID after the creation?

M.Sc.IT, M.B.A, MCTS BI 2008, MCITP BI 2008, MCTS SQL Dev, CSM, CDVDM
darth vodka
darth vodka
Mr or Mrs. 500
Mr or Mrs. 500 (521 reputation)Mr or Mrs. 500 (521 reputation)Mr or Mrs. 500 (521 reputation)Mr or Mrs. 500 (521 reputation)Mr or Mrs. 500 (521 reputation)Mr or Mrs. 500 (521 reputation)Mr or Mrs. 500 (521 reputation)Mr or Mrs. 500 (521 reputation)

Group: General Forum Members
Points: 521 Visits: 328
aha, just had the same problem myself

open the database in SSMS and right click on the dimension, script dimension as, create to

change the ID to whatever you like and change the name, then run it

then delete the old one in VS and associate the new one to the cube


ah, you said do not recreate, ooops Smile use ALTER in the XML then
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search