sql_get_query_plan
Get an estimated execution plan for a SELECT query as text to diagnose and resolve slow-running queries by identifying performance bottlenecks.
Instructions
Get the estimated execution plan for a SELECT query as text (SET SHOWPLAN_ALL). Useful for diagnosing slow queries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | The SELECT query to analyse |