Sqlserver-dba.com

Subscribe

Subscribe to RSS feed  Follow @jackvamvas - Twitter

Enjoy this post? Enter your email address for updates on new posts:

Delivered by FeedBurner

Email +Jack Vamvas at jack@sqlserver-dba.com

SQLServer-DBA.com Links

Subscribe to newsletter

Dba_db2_button

Powered by TypePad
SQL Execution Plan in text

22 June,2012 by Jack Vamvas

Question: I want to send an SQL query Execution Plan in text to the DBA. What is the best way to create the Execution Plan?

Answer:  There are three commands in SQL Server I use for SQL Server Query Tuning.    They each offer  different levels of information and presentation.     Read up in BOL about various options such as SET NOEXEC

SET SHOWPLAN_TEXT ON|OFF

SET SHOWPLAN_ALL ON|OFF

SET SET SHOWPLAN_XML ON|OFF

I prefer  SET SHOWPLAN_ALL , as it offers extra information , in a tabular format.  It makes it easy to spot potential problems.  I build scripts to analyse the output.

SET SHOWPLAN_TEXT is easier to read

 With some training , it doesn’t take very long to understand the details offered. Typical uses include:

1) SEEK versus SCAN

2) The order of occurrence

3) Comparing query plans – “What is the most  cost efficient approach to a query?”

4) Looking for clues – such as Hash Joins , that will allow query perfomance improvement


Author: Jack Vamvas (http://www.sqlserver-dba.com)

Enjoy this post? Enter your email address for updates on new posts:

Delivered by FeedBurner

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment


sqlserver-dba.com | SQL Server Performance Tuning | SQL Server DBA:Everything | FAQ | Contact|Copyright & Disclaimer