sys.dm_exec_query_stats

  • Comments posted to this topic are about the item sys.dm_exec_query_stats

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    This thing is addressing problems that dont exist. Its solution-ism at its worst. We are dumbing down machines that are inherently superior. - Gilfoyle

  • Well, the documentation states that these new columns were added from SQL 2016.  However, they are available in my SQL 2014 instance.


    SELECT @@VERSION;


    Microsoft SQL Server 2014 (SP2-GDR) (KB3194714) - 12.0.5203.0 (X64)
        Sep 23 2016 18:13:56
        Copyright (c) Microsoft Corporation
        Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)


    select
      total_dop
    , total_reserved_threads
    , total_grant_kb
    from sys.dm_exec_query_stats;


    total_dop    total_reserved_threads    total_grant_kb
    3    0    3072
    1    0    1872
    1    0    1024

  • Interesting question, Henrico, thanks...

    ____________________________________________
    Space, the final frontier? not any more...
    All limits henceforth are self-imposed.
    โ€œlibera tute vulgaris exโ€

  • DesNorton - Sunday, March 26, 2017 10:22 PM

    Well, the documentation states that these new columns were added from SQL 2016.  However, they are available in my SQL 2014 instance.


    SELECT @@VERSION;


    Microsoft SQL Server 2014 (SP2-GDR) (KB3194714) - 12.0.5203.0 (X64)
        Sep 23 2016 18:13:56
        Copyright (c) Microsoft Corporation
        Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)


    select
      total_dop
    , total_reserved_threads
    , total_grant_kb
    from sys.dm_exec_query_stats;


    total_dop    total_reserved_threads    total_grant_kb
    3    0    3072
    1    0    1872
    1    0    1024

    That is quite interesting. Thanks for sharing.

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    This thing is addressing problems that dont exist. Its solution-ism at its worst. We are dumbing down machines that are inherently superior. - Gilfoyle

  • Think they may have been added in a service pack for both 2012 and 2014 -
    Improved memory grant diagnostics when you use DMV in SQL Server 2012 and 2014

    Sue

  • Henrico Bekker - Monday, March 27, 2017 6:52 AM

    DesNorton - Sunday, March 26, 2017 10:22 PM

    Well, the documentation states that these new columns were added from SQL 2016.  However, they are available in my SQL 2014 instance.


    SELECT @@VERSION;


    Microsoft SQL Server 2014 (SP2-GDR) (KB3194714) - 12.0.5203.0 (X64)
        Sep 23 2016 18:13:56
        Copyright (c) Microsoft Corporation
        Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)


    select
      total_dop
    , total_reserved_threads
    , total_grant_kb
    from sys.dm_exec_query_stats;


    total_dop    total_reserved_threads    total_grant_kb
    3    0    3072
    1    0    1872
    1    0    1024

    That is quite interesting. Thanks for sharing.

    They're also present in SQL 2012 SP3.

  • Seems MS documentation needs to be updated. 
    Apologies if anyone lost points! ๐Ÿ™‚

    -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    This thing is addressing problems that dont exist. Its solution-ism at its worst. We are dumbing down machines that are inherently superior. - Gilfoyle

  • Henrico Bekker - Monday, March 27, 2017 4:12 PM

    Seems MS documentation needs to be updated. 

    Huge understatement

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

  • SQLRNNR - Monday, March 27, 2017 6:06 PM

    Henrico Bekker - Monday, March 27, 2017 4:12 PM

    Seems MS documentation needs to be updated. 

    Huge understatement

    Heh - more than just that page needs to be updated. ๐Ÿ˜‰

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply