Explain query execution plan?
- Optimizer available in SQL Server optimizes code to be effectively executed.
- A query execution plan demonstrates how this optimizer would run the query.
- Query execution plan can be viewed by:
- Using Show Execution Plan option available in Query Analyser,
- Displaying Estimated Execution Plan on query dropdown menu,
- Use SET SHOWPLAN_TEXT ON command before running a query and capturing execution plan event in a SQL Server Profiler trace.