Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Change Dimension ID. HOW? Expand / Collapse
Author
Message
Posted Wednesday, June 18, 2008 12:00 AM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, December 10, 2013 10:06 PM
Points: 374, Visits: 428
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
Post #518763
Posted Wednesday, June 18, 2008 8:37 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: Moderators
Last Login: Tuesday, September 16, 2014 7:56 PM
Points: 1,816, Visits: 3,461
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.
Post #519116
Posted Wednesday, June 18, 2008 4:39 PM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, December 10, 2013 10:06 PM
Points: 374, Visits: 428
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
Post #519508
Posted Wednesday, June 18, 2008 4:51 PM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, December 10, 2013 10:06 PM
Points: 374, Visits: 428
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
Post #519516
Posted Wednesday, June 18, 2008 5:05 PM


Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: Tuesday, December 10, 2013 10:06 PM
Points: 374, Visits: 428
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
Post #519522
Posted Tuesday, April 20, 2010 9:20 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, September 29, 2010 6:39 AM
Points: 101, 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 :) use ALTER in the XML then
Post #906968
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse