Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

DMV queries must be run on what query window in SSMS

The below DMV queries must be run on which query window in SSMS ? 

mdx, dax or xmla 

 

SELECT * FROM SYSTEMRESTRICTSCHEMA
($System.DISCOVER_STORAGE_TABLE_COLUMNS,
[DATABASE_NAME] = '<Dataset Name>') //Sum DICTIONARY_SIZE (bytes)

SELECT * FROM SYSTEMRESTRICTSCHEMA
($System.DISCOVER_STORAGE_TABLE_COLUMN_SEGMENTS,
[DATABASE_NAME] = '<Dataset Name>') //Sum USED_SIZE (bytes)

 

Tried running on dax and got the below error message :

 

Obtained object of type: Microsoft.AnalysisServices.AdomdClient.AdomdDataReader
A DISCOVER operation is only supported for a tabular model database for which you have administrative permissions. Either the current database is not tabular, or you do not have administrative permissions.

 

SSMS VERSION:

SQL Server Management Studio 15.0.18424.0

2 REPLIES 2
tackytechtom
Super User
Super User

Hi @Anonymous ,

 

According to MS documentation, it should be MDX:
Dynamic Management Views (DMVs) in Analysis Services | Microsoft Learn

 

Can you try?

 

By the way, you can also query DMVs in Power BI. Here a blog post about this topic:
https://www.tackytech.blog/how-to-build-meta-reports-on-top-of-power-bi-datasets-with-dynamic-management-views-dmvs/

 

Let me know if this helps 🙂

 

/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/



Did I answer your question➡️ Please, mark my post as a solution ✔️

Also happily accepting Kudos 🙂

Feel free to connect with me on LinkedIn! linkedIn

#proudtobeasuperuser 

Anonymous
Not applicable

@tackytechtom 

Tried running on MDX query window, but got the below error

 

Note: My credential is a member of the workspace 

Error:

Executing the query ...
Obtained object of type: Microsoft.AnalysisServices.AdomdClient.AdomdDataReader
A DISCOVER operation is only supported for a tabular model database for which you have administrative permissions. Either the current database is not tabular, or you do not have administrative permissions.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors