I was reading an SQL tutorial which used the keyword EXPLAIN to see how a query is executed. I tried it in SQL Server 2008 with no success.
How do I get the equivalent result?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe that the
EXPLAINkeyword is an MySQL concept – the equivalent Microsoft SQL server concept is the execution plan.The simplest way of getting an execution plan is to turn on the “Show actual execution plan” menu item (in the query menu) in SQL server management studio. Alternatively you can read a more in-depth guide on execution plans here:
This article goes into a lot more detail on what execution plans are, how to obtain an execution plan, and the different execution plan formats.