A Warning to Those Using sys.dm_exec_query_stats

Posted by Adam Machanic on SQL Blog See other posts from SQL Blog or by Adam Machanic
Published on Fri, 23 Apr 2010 02:15:00 GMT Indexed on 2010/04/23 3:23 UTC
Read the original article Hit count: 385

Filed under:
|
|
The sys.dm_exec_query_stats view is one of my favorite DMVs. It has replaced a large chunk of what I used to use SQL Trace for--pulling metrics about what queries are running and how often--and it makes this kind of data collection painless and automatic. What's not to love? But use cases for the view are a topic for another post. Today I want to quickly point out an inconsistency. If you're using this view heavily, as I am, you should know that in some cases your queries will not get a row. One...(read more)

© SQL Blog or respective owner

Related posts about DMVs

  • SSAS DMVs: useful links

    as seen on SQL Blog - Search for 'SQL Blog'
    From time to time happens that I need to extract metadata informations from Analysis Services DMVS in order to quickly get an overview of the entire situation and/or drill down to detail level. As a memo I post the link I use most when need to get documentation on SSAS Objects Data DMVs: SSAS: Using… >>> More

  • SSAS DMVs: useful links

    as seen on SQL Blog - Search for 'SQL Blog'
    From time to time happens that I need to extract metadata informations from Analysis Services DMVS in order to quickly get an overview of the entire situation and/or drill down to detail level. As a memo I post the link I use most when need to get documentation on SSAS Objects Data DMVs: SSAS: Using… >>> More

  • Seeking on a Heap, and Two Useful DMVs

    as seen on SQL Blog - Search for 'SQL Blog'
    So far in this mini-series on seeks and scans, we have seen that a simple ‘seek’ operation can be much more complex than it first appears.  A seek can contain one or more seek predicates – each of which can either identify at most one row in a unique index (a singleton lookup) or a range of values… >>> More

  • SQL Server DMVs in Action - Sample Chapter

    as seen on SQL Server Central - Search for 'SQL Server Central'
    Read the first chapter of this new book on DMVs. Free trial of SQL Backup™“SQL Backup was able to cut down my backup time significantly AND achieved a 90% compression at the same time!” Joe Cheng. Download a free trial now. >>> More

  • SQL Server 2012 : Changes to system objects in RC0

    as seen on SQL Blog - Search for 'SQL Blog'
    As with every new major milestone, one of the first things I do is check out what has changed under the covers. Since RC0 was released yesterday, I've been poking around at some of the DMV and other system changes. Here is what I have noticed: New objects in RC0 that weren't in CTP3 Quick summary:… >>> More

Related posts about monitoring