Using SSAS Dynamic Management Views (DMVs) to monitor activity and usage

The previous recipe explained what DMVs are and illustrated how they can be used to get information about SSAS objects using the MDSCHEMA collection of DMVs.

In this recipe, we're shifting focus to another collection of DMVs, the DISCOVER collection. This is the largest collection of DMVs. DMVs in this collection can be used to monitor the usage of the cube in all its aspects.

Getting ready

Start SQL Server Management Studio and connect to your SSAS 2016 instance. Click on the New Query button and check that the target database is Adventure Works DW 2016.

As explained in the previous recipe, the MDX query window supports DMV queries. Let's run a query to verify that:

select * ...

Get MDX with Microsoft SQL Server 2016 Analysis Services Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.