90 likes | 234 Views
Grant Fritchey FM Global. Identifying and Fixing Performance Problems Using Execution Plans. Grant Fritchey. Principal DBA for FM Global Microsoft SQL Server MVP PASS Chapter President Author: SQL Server Execution Plans SQL Server 2008 Query Performance Tuning Distilled. Goals.
E N D
Grant Fritchey FM Global Identifying and Fixing Performance Problems Using Execution Plans
Grant Fritchey • Principal DBA for FM Global • Microsoft SQL Server MVP • PASS Chapter President • Author: • SQL Server Execution Plans • SQL Server 2008 Query Performance Tuning Distilled
Goals • Learn how to read execution plans to identify common problems
Agenda • Why Execution Plans • Where to Get Them • Playing With Execution Plans • Lookups • Missing Index • Bad Statistics • Recompiles • Ad Hoc SQL • Parameter Sniffing • Cursors • Multi-Statement Table Valued UDF • Query Hints • Sargeable • Questions
Why Execution Plans? • The best window into Optimizer internals • Best way to figure out why queries behave as they do
Where to get them? • SQL Server Management Studio • Sys.dm_exec_query_plan • Trace Events
Goals • Learn several ways to access execution plans • Learn how to read execution plans to identify common problems
Questions? • http://scarydba.wordpress.com/resources/