May 2019
Intermediate to advanced
484 pages
11h 23m
English
As we mentioned in the sys.dm_exec_query_plan section, query execution plans are stored as XML, and the sys.dm_exec_query_plan DMV returns them as a proper XML datatype. This allows us to leverage XML Path Language (XPath) to generate queries that can search for elements and attributes within the query execution plans. Using these XPath queries, or XQueries, we can search for common query performance issues across all the query execution plans in the cache, rather than having to examine each graphical plan individually. In this section, we will cover a few common scenarios, but be sure to reference the Mining-PlanCache section of the TIGER toolbox (https://aka.ms/tigertoolbox) for more examples.
Read now
Unlock full access