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

前端 未结 12 1941
不知归路
不知归路 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:16

    Like with SQL Server Management Studio (already explained), it is also possible with Datagrip as explained here.

    1. Right-click an SQL statement, and select Explain plan.
    2. In the Output pane, click Plan.
    3. By default, you see the tree representation of the query. To see the query plan, click the Show Visualization icon, or press Ctrl+Shift+Alt+U

提交回复
热议问题