Skip to Main Content
Learn T-SQL Querying
book

Learn T-SQL Querying

by Pedro Lopes, Pam Lahoud
May 2019
Intermediate to advanced content levelIntermediate to advanced
484 pages
11h 23m
English
Packt Publishing
Content preview from Learn T-SQL Querying

The sys.dm_exec_query_plan_stats DMF

SQL Server 2019 introduced a new DMF named sys.dm_exec_query_plan_stats, which leverages LWP by default, and like the DMF in the previous section, it also works if Standard Profiling is enabled. This DMF outputs the last known equivalent of a query execution plan for any given query whose query plan can still be found in the plan cache. In other words, every data professional can now have the last actual execution plan always available for any query.

This DMF only maintains a subset of what is available through XEvents using lightweight profiling. The available information for plans accessed through this DMF is operator level row count, spill warnings (without I/O detail), and query level CPU time and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn T-SQL Querying - Second Edition

Learn T-SQL Querying - Second Edition

Pedro Lopes, Pam Lahoud
SQL Server T-SQL Recipes, Fourth Edition

SQL Server T-SQL Recipes, Fourth Edition

Jason Brimhall, Jonathan Gennick, Wayne Sheffield

Publisher Resources

ISBN: 9781789348811Supplemental Content