SQL Server Execution Plan
How to Analyze SQL Server Query Execution Plans. SQL Server execution plan basics.
This Quick Trainer tutorial walks you through how to read SQL Server Query Execution Plans. It teaches you how to identify warnings, and how to identify the slowest operator on which to focus your performance tuning efforts. It also instructs how to identify and fix table scans, clustered index scans, spools, sorts, and missing or stale statistics. Finally, this tutorial instructs you how to get SQL Server to automatically identify common issues with the "Analyze Actual Execution Plan" command.
All materials are (cc) or Creative Commons copyright so feel free to screenshot or link to these tutorials or pull down the presentation PDF from GitHub for use in your organization.
------ Chapter Timestamps (click to jump forward): ----------------------------
0:00 - Intro
0:21 - What is a Query Execution Plan?
3:57 - How to Read a Query Execution Plan
7:04 - How to Identify Warnings
8:31 - How to Identify the Slowest Operator
11:09 - How to Identify and Fix "Table Scans" and "Clustered Index Scans"
14:58 - How to Identify and Fix "Spools" and "Sorts"
16:52 - How to Identify and Fix "Missing or Stale Statistics"
21:13 - How to Identify Common Issues Automatically
22:16 - The End
GitHub PDF of Presentation:
https://github.com/DataResearchLabs/Q...
Reference Articles:
Microsoft Operator Ref: https://docs.microsoft.com/en-us/sql/...
Red-Gate: https://www.red-gate.com/simple-talk/...
MS SQL Tips: https://www.mssqltips.com/sqlservertu...
Microsoft Docs: https://docs.microsoft.com/en-us/sql/...
Data with Bert: • SQL Server Execution Plans - Part 1
Quest: https://www.quest.com/community/blogs...
Stack Overflow #: https://stackoverflow.com/questions/5...
SQL Performance: https://sqlperformance.com/2012/11/t-...
Adam Machanic: • SQL Server Query Plan Analysis: The 5 Culp...
Watch related playlist videos:
• Microsoft SQL Server Quick Trainers (QT1)
Connect with me on social media:
LinkedIn: / mpiercead576
YouTube: / @dataresearchlabs
GitHub: https://github.com/DataResearchLabs
Subscribe to my YouTube Channel:
/ @dataresearchlabs
Background Music (via YouTube "always free" Audio):
"Rewind" by Ofshane: / @ofshane
#MSSQL #SQLServer #SSMS #SSMSTips #QueryTuning