
Rudi Bruchez EI · www.pachadata.com · rudi@pachadata.com · +33 6 22 48 76 99
Consulting, audit, performance tuning, solutions, training
SQL Server OLTP and BI / NoSQL
Version of October 14, 2026 (4308dcaa) · https://www.pachadata.com/en/docs/howtos/performance/execution-plan/
Get an execution plan
Every query is optimized by the SQL Server query optimizer, which builds an execution plan — also called a query plan — to decide the strategy the execution engine will follow.
Looking at that plan is how you find opportunities to optimize a query.
There are two of them:
- the estimated plan, more accurately described as the plan before execution;
- the actual plan, more accurately described as the plan after execution.
Estimated plan
- Display the plan before execution by selecting a query in SSMS and pressing Ctrl+L.
- You can also use this button in the SSMS toolbar.

- Once the plan is displayed, right-click the graphical plan and choose Save execution plan as… from the context menu.
- Save it to a file with the
.sqlplanextension.
Actual plan
- Display the plan after execution by selecting a query in SSMS and pressing Ctrl+M.
- You can also use this button in the SSMS toolbar.

- Then run the query. Once it completes, the execution plan appears graphically in a tab of the results pane.

- Once the plan is displayed, right-click the graphical plan and choose Save execution plan as… from the context menu.
- Save it to a file with the
.sqlplanextension.
Contact
I have been an independent SQL Server consultant since 2006. I help when an application slows down, when a server costs too much in storage or licenses, or when a migration must not stop production: audit and diagnosis, query and index tuning, migrations, high availability, training. On site, or as a remote audit delivered in five working days.
rudi@pachadata.com · +33 6 22 48 76 99 · www.pachadata.com/en/contact/