Interview Questions

What is an execution plan? When would you use it? How would you view the execution plan?

.NET Database ,COM interop,and .NET deployment questions and answers


(Continued from previous question...)

What is an execution plan? When would you use it? How would you view the execution plan?

The Query Analyzer has a feature called Show Execution Plan. This option allows you to view the execution plan used by SQL Server’s Query Optimizer to actually execute the query. This option is available from the Query menu on the main menu of Query Analyzer, and must be turned on before the query is executed. Once the query is executed, the results of the execution plan are displayed in graphical format in a separate window, available from a tab that appears below the query results window on the screen.

(Continued on next question...)

Other Interview Questions