Analyze an Actual Execution Plan
This topic describes how you can analyze actual graphical execution plans by using SQL Server Management Studio Plan Analysis feature. This feature is available starting with SQL Server Management Studio v17.4. We generally recommend that you install the latest version of SSMS.
Actual execution plans are generated after the Transact-SQL queries or batches execute. Because of this, an actual execution plan contains runtime information, such as actual number of rows, resource usage metrics and runtime warnings (if any). For more information, see Display an Actual Execution Plan.
Query performance troubleshooting requires significant expertise in understanding query processing and execution plans, in order to be able to actually find and fix root causes.
SQL Server Management Studio includes functionality that implements some degree of automation in the task of actual execution plan analysis, especially for large and complex plans. The goal is to make it easier to find scenarios of inaccurate Cardinality Estimation and get recommendations on which possible mitigations may be available.
Ensure proper testing of proposed mitigations before applying them on production environments.
To analyze an execution plan for a query
Open a previously saved query execution plan file (.sqlplan) using the File menu and clicking on Open File, or drag a plan file to Management Studio window. Alternatively, if you just executed a query and chose to display its execution plan, move to the Execution Plan tab in the results pane.
Right-click in a blank area of the execution plan and click Analyze Actual Execution Plan.
The Showplan Analysis window opens on the bottom. The Multi Statement tab is useful when analyzing plans with multiple statements, by allowing the right statement to be analyzed.
Select the Scenarios tab to see details on the issues found for the actual execution plan. For each listed operator on the left pane, the right pane shows details about the scenario in the Click here for more information about this scenario link, and possible reasons to explain that scenario are listed.