Skip to Content
Inside Microsoft® SQL Server® 2008: T-SQL Querying
book

Inside Microsoft® SQL Server® 2008: T-SQL Querying

by Lubor Kollar Itzik Ben-Gan Dejan Sarka, and Steve Kass
March 2009
Intermediate to advanced
832 pages
23h 49m
English
Microsoft Press
Content preview from Inside Microsoft® SQL Server® 2008: T-SQL Querying

Tools for Query Tuning

This section provides an overview of the query-tuning tools that will be used throughout these books, and it will focus on analyzing execution plans.

Cached Query Execution Plans

SQL Server 2008 provides several objects that you can query to analyze the behavior of cached query execution plans:

  • The sys.dm_exec_cached_plans DMV contains information about the cached query execution plans, with a row per each cached plan.

  • The sys.dm_exec_plan_attributes DMF contains one row per attribute associated with the plan, whose handle is provided as input to the DMF.

  • The sys.dm_exec_sql_text DMF returns the text associated with the query, whose handle is provided as input to the DMF.

  • The sys.dm_exec_query_plan DMF provides the XML form of ...

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

Inside Microsoft® SQL Server® 2008: T-SQL Programming

Inside Microsoft® SQL Server® 2008: T-SQL Programming

Dejan Sarka Itzik Ben-Gan Greg Low, Roger Wolter, Ed Katibah, and Isaac Kunen
Microsoft® SQL Server® 2008 Internals

Microsoft® SQL Server® 2008 Internals

Paul Randal Kalen Delaney Kimberly Tripp, and Conor Cunningham
Microsoft® SQL Server 2012 Unleashed

Microsoft® SQL Server 2012 Unleashed

Ray Rankins, Paul T. Bertucci, Chris Gallelli, Alex T. Silverstein

Publisher Resources

ISBN: 9780735634763Purchase book