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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors