Credits:
Author: ChillyDBA
Date: 29 Jun 2012
Description
Since their introduction in SQL Server 2005, DMVs/DMFs have become a staple for DBAs who want/need to examine in-depth aspects of SQL Server management and structure.
Each new SQL Server version (and sometimes Service Pack) broadens the scope of these valuable assets. SQL Server 2008 R2 now has in excess of 130.
It can sometimes be a challenge to find exactly the information that you require, as SQL BOL is not really designed for just browsing across the collection of DMVs.
I therefore created a quick query to list all the DMVs and DMFs along with columns and data types. This is easier to browse initially, with BOL providing the in-depth information once the required DMV/DMF has been identified.
Code
--Listing all the DMV/DMF along with its columns, their --data types and size
|