[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Display Execution plan on SQL 2008 R2

Posted on 2014-08-26
Medium Priority
Last Modified: 2014-09-10
Any idea how to display the actual execution plan on SQL 2008 R2 ? I have clicked the "Include Actual Execution Plan" icon under SQL Management Studio but  can't see any execution plan after running the query.

Attached is the estimated execution plan for a query. Base on the information, does it mean it use index rather than table scan. What will it be displayed if the query use Table scan to retrieve the result ? How can I tell from the execution plan result whether the query is efficient or not.

Question by:AXISHK
  • 2
LVL 29

Expert Comment

ID: 40287113
You should have an extra tab called "execution plan" after the query has finished running
LVL 29

Assisted Solution

QPR earned 1000 total points
ID: 40287120
Yes it is scanning the index not the table. If there were no index it would show table scan.
Here is a good article on understanding them.
Be aware that any advice given for index creation/tuning will be based on the query/workload supplied and does not take other factors into consideration such as who/what else is using the tables and the ratio of queries to data modification

LVL 49

Accepted Solution

PortletPaul earned 1000 total points
ID: 40287134
Table Scan will look like this:table scan image
It is preferable when providing execution plans to use XML
see: Save an Execution Plan in XML Format

and attach as a .sqlplan file (it's an allowed suffix at EE)

If you don't already have it there is a free utility for reading execution plans  that is well worth the effort!
(there is also a pro version, but I'm happy with the freebie)

Author Closing Comment

ID: 40316055

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
Integration Management Part 2
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question