A Set of Boon Tools – SSAS DMVs in SQL Server 2012

Hi All,

As you must have heard or started using DMVs (Dynamic Management View) available in SQL Server to get information about local server operations and server health. But today I would like to focus specially on DMVs for monitoring SSAS (SQL Server Analysis Services) and dig-down to find out how powerful it can be.

DMVs for SSAS are known as “Analysis Services Dynamic Management View“. We can query these views by simple T-SQL SELECT statement. When use these views, they exposes analysis services schema rowsets in form of table, hence information presented will become self-explanatory.

Major benefits of using Analysis Services DMVs:

  1. DMV queries return information about operations and resource consumption that are not available through other means.
  2. DMV queries are an alternative to running XMLA Discover commands. For most administrators, writing a DMV query is simpler because the query syntax is based on SQL.
  3. Resultset of DMVs is table rather than XML so it’s not difficult to interpret the results.

You can write these SELECT statements in DMX window and not in SQL Query window as we run these queries on SSAS and not on relational databases.

Note: SSAS DMVs are available in all versions after SQL Server 2005. They are not available in SQL Server 2000 & 2005.

To use the following DMVs, you can run a DMV query by using a SELECT statement and the $System schema with an XML/A schema rowset.

E.g. how to use following DMVs.

List of DMVs:

•    You must have system administrator permissions on the Analysis Services instance to query DMVs.
•    Not all schema rowsets have a DMV interface. So, if a DMV is not available for a given rowset, the server returns the following error: “The <schemarowset> request type was not recognized by the server”. All other errors point to problems with the syntax. You can find more details on MSDN.

I hope you will enjoy working with these cool DMVs.
Thanks, Khilit

Rate this post

One Comment

Leave a Reply