In SSAS 2005 to access SSAS metadata you had to use object model. In SSAS 2008 November CTP Microsoft introduced schema rowsets as an alternative way to access metadata. I did some tests last few days and here I’ll post examples of what could be done. Generally it is quite easy to write these queries. BOL already have description for most of the tables and fields you can query. What was not so easy is to get metadata on structure that is hierarchical. That is there is an easy way to get a list of hierarchies in one dimension. But to get list of levels of hierarchies of dimensions becomes not an easy task.
| Katmai Analysis Services 2008 November CTP5 - tests on metadata rowsets |
| Written by Vidas Matelis |
| Friday, 30 November 2007 18:19 |
|
SELECT statements you can write on these rowsets appear to be quite limited. For example:
As I did not find restriction list in documentation, list above is from my experience. It could be that I just did not do my tests properly, but I am sure sooner or latter there will be official list of what is supported. Bellow are examples of queries that are very simple, but enough for anyone to get an idea of what it is possible. All these examples where run in Adventure Works DW database.
Examples how to get metadata
Examples how to query data You can also write queries to get actual dimension members from dimension or fact records from measure group. I found that performance on measure group queries was quite slow. So more examples:
These examples should give you good idea what kind of metadata and data is now accessible. |
Latest Author Articles
- How to use MDW to collect Analysis Services 2008 performance counters
- Analysis Services 2008 performance counters
- Microsoft SQL Server 2008 RC0 - New Adventure Works Sample Databases for SSAS
- SSAS 2008 RC0 - New function SYSTEMRESTRICTSCHEMA for restricted schema rowsets - DMVs
- Excel 2007 Pivot Table with SharePoint On Vista PC - works good after SP1
Top Rated
- SSAS Implementation Best Practices slides in PDF format
- SSRS Report Against a SSAS Parent Hierarchy
- Handling inter-dimensional members dependency and reducing cube sparsity using reference dimensions in Analysis Services 2005
- Cube structure optimization for MDX query performance in Analysis Services 2005 SP2: Tips for Parent Child Hierarchies usage
- Handling Multiple Calendars with a M2M Scenario
- Passing MDX parameters in Reporting Services reports
- Using UserName to Control Data Access and Default Member in SSAS 2K5 (Carrie Williams)
- SSAS Tutorial: SQL Server 2005 Analysis Services Tutorial by Accelebrate









