1

I have access to an OLAP catalog, but I am not familiar with MDX. I am looking for the MDX equivalent of SQL:

SHOW DATABASES; 
SHOW TABLES;

I was looking at MDX language reference, but I could not find a way of getting the schema, the cube metadata. Thanks for helping.

RAS
  • 8,100
  • 16
  • 64
  • 86
Elzo Valugi
  • 27,240
  • 15
  • 95
  • 114
  • Which OLAP solution are you using on top of you MySQL DB : icCube, MSAS, Mondrian ? – Marc Polizzi Jun 04 '12 at 23:46
  • I am not the OLAP provider, I am just a consumer. The mysql queries were only examples of the metadata queries that I wanted to do in order to get the OLAP structure (which I do not know). – Elzo Valugi Jun 05 '12 at 06:24

2 Answers2

4

You can use the $SYSTEM database to query your objects.

Use SELECT * FROM $SYSTEM.DISCOVER_SCHEMA_ROWSETS to get a list of things you can query. In your case it would most likely be DBSCHEMA_CATALOG, DBSCHEMA_TABLES and MDSCHEMA_CUBES.

This is very rough information, and using stuff like Preet suggests might be favorable in the end.

cairnz
  • 3,917
  • 1
  • 18
  • 21
2

There is answer List dimension members with MDX query to show how list dimensions.

This open source project (TSSASM) shows how to query access the cube structure from a TSQL database.

However I think you may need XMLA commands to see what you need.

Community
  • 1
  • 1
Preet Sangha
  • 64,563
  • 18
  • 145
  • 216