Ask the Expert

View query execution plan in SQL Server with this method

Can you brief me on how to check and understand a query execution plan in SQL Server?

    Requires Free Membership to View

From my perspective, the best approach to review a SQL Server query plan is via the graphical approach with either Management Studio or Query Analyzer. Just review the tool bar on each application to find the correct icon. After you run the query, you will see the graphical query plan in the results section of the window as a separate tab. From that point forward, hover your mouse over the icon on the far left of the window to obtain the overall sub tree cost. Then review the other icons with high percentages of the query plan to determine the potential issues. As you make changes to the query, continue to review the query plan and validate the overall sub tree cost is decreasing.

This was first published in December 2007

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: