Pushing for more disclosure in DMVs
December 16th, 2008
Pushing for more disclosure in DMVs
December 16th, 2008

I have been involved in several discussions over the past week involving getting more diagnostic information out of the DMVs in SQL Server 2008 and beyond.

Yesterday, I asked for procedure recompiles to be tracked in the new sys.dm_exec_procedure_stats DMV:


Today, Erland followed up with a similar request, but at the statement level (so the stats would be tracked in sys.dm_exec_query_stats):


I also pushed an item today asking for page split information to be tracked in sys.dm_db_index_physical_stats.  There is probably not enough meat there for everyone to be satisfied, but it is a start:


There is a reluctance to add more data to the DMVs.  So I urge you, if any of this information is important to you, go and vote, or otherwise make your voice heard.  If you think there are better ways to derive this data, say so!

XEvents is a new way to collect trace-like data, without the overhead of SQL Trace, and without the overhead of generically collecting everything under the sun in the DMVs.  The problem many have with this approach is that you still have to know what to look for, and set up XEvents to capture it, before it happens.

You can read more on XEvents on MSDN:


And in Paul Randal's TechNet article:


More specifically, Eladio Rincón talks about how to use XEvents to determine which queries are causing page splits.

By: Aaron Bertrand

I am a passionate technologist with industry experience dating back to Classic ASP and SQL Server 6.5. I am a long-time Microsoft MVP, write at Simple Talk, SQLPerformance, and MSSQLTips, and have had the honor of speaking at more conferences than I can remember. In non-tech life, I am a husband, a father of two, a huge hockey and football fan, and my pronouns are he/him.