dbaspot
Tags Register FAQ Calendar Search Today's Posts Mark Forums Read

How to query list of hierarchies - sqlserver-olap

This is a discussion on How to query list of hierarchies - sqlserver-olap ; I want to query SSAS2005 to return a list of hierarchies for a given dimension. Is there an MDX or XMLA statment to do this for me? -- JimL...


Home > Database Forum > Data Warehousing > sqlserver-olap > How to query list of hierarchies

Reply

 

LinkBack Thread Tools Display Modes
  #1  
Old 11-12-2008, 05:20 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default How to query list of hierarchies

I want to query SSAS2005 to return a list of hierarchies for a given dimension.

Is there an MDX or XMLA statment to do this for me?
--
JimL
Reply With Quote
  #2  
Old 11-14-2008, 10:58 PM
Database Bot
 
Join Date: Sep 2009
Posts: 1,236,254
Database Administrator is on a distinguished road
Default Re: How to query list of hierarchies

You can use XMLA to return an MDSCHEMA_HIERARCHIES Rowset:

http://msdn.microsoft.com/en-us/library/ms126062.aspx
>>

SQL Server 2008 Books Online (October 2008)
MDSCHEMA_HIERARCHIES Rowset

Describes each hierarchy within a particular dimension.
...
>>



For example, this Discover query returns all 5 user-defined hierarchies
of the Adventure Works Product dimension:


MDSCHEMA_HIERARCHIES


Adventure Works DW
Adventure Works
[Product]
1




Adventure Works DW
Tabular





- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***
Reply With Quote
Reply

Thread Tools
Display Modes



All times are GMT -4. The time now is 01:03 PM.