Search:     Advanced search
Browse by category:
C/C++   |   Java   |   Oracle/Database   |   SAP   |   ASP .NET   |   Mainframe-DB2   |   Freshers

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

Add comment
Views: 409
Votes: 0
Comments: 0
A:
An execution plan is basically a road map that graphically or textually shows the data retrieval methods chosen by the SQL Server query optimizer for a stored procedure or ad-hoc query and is a very useful tool for a developer to understand the performance characteristics of a query or stored procedure since the plan is the one that SQL Server will place in its cache and use to execute the stored procedure or query. From within Query Analyzer is an option called "Show Execution Plan" (located on the Query drop-down menu). If this option is turned on it will display query execution plan in separate window when query is ran again. 
 
Others in this Category
document Which TCP/IP port does SQL Server run on? How can it be changed?
document What is B-Tree?
document What is MERGE Statement?
document List few advantages of Stored Procedure.
document What are different types of Collation Sensitivity?
document What is an execution plan? When would you use it? How would you view the execution plan?
document What is Cursor?
document What is the difference between a Local and a Global temporary table?
document What is the STUFF function and how does it differ from the REPLACE function?
document Q: What are different normalization forms?
» More articles



RSS