How do I obtain a Query Execution Plan in SQL Server?

前端 未结 12 1904
不知归路
不知归路 2020-11-21 04:17

In Microsoft SQL Server how can I get a query execution plan for a query / stored procedure?

12条回答
  •  遥遥无期
    2020-11-21 05:06

    Assuming you're using Microsoft SQL Server Management Studio

    • For Estimated Query Plan you can press Ctrl + L or the following button.

    • For Actual Query Plan, you can press Ctrl + M or the following button before executing query.

    • For Live Query Plan, (only in SSMS 2016) use the following button before executing query.

提交回复
热议问题