dbTalk Databases Forums  

SQL Server 2005 Database Tuning Advisor

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss SQL Server 2005 Database Tuning Advisor in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Joe K.
 
Posts: n/a

Default SQL Server 2005 Database Tuning Advisor - 01-28-2009 , 10:47 AM







I have a serveral SQL Server 2005 stored procedures that I would like to
test with a tool to determine if there are indexes that could be added to the
stored procedures to enhance performance. Can I use the Database Tuning
Advisor on the stored procedures? If, yes please let me know the process.

Thanks,

Reply With Quote
  #2  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: SQL Server 2005 Database Tuning Advisor - 01-28-2009 , 05:23 PM






Joe K. (Joe K. (AT) discussions (DOT) microsoft.com) writes:
Quote:
I have a serveral SQL Server 2005 stored procedures that I would like to
test with a tool to determine if there are indexes that could be added
to the stored procedures to enhance performance. Can I use the Database
Tuning Advisor on the stored procedures? If, yes please let me know the
process.
You probably can, but I cannot really give you the way to do it, because I
have never used DTA myself. And I am not so sure that using DTA for a
few procedures is a good thing. I believe DTA works better if you give
a workload for a whole day. Then you might find interesting things.

The problem with running DTA for just a few procedures, is that indexing
is often about tradeoffs. For a certain query, an index on
(a, b, c, d) with (e, f, g) included is the optimal. But the next query
needs h included instead of g and so on. Since there is some overhead
with index, you cannot add them blindly.

The alternative is to add the indexes manually, which of course is not
that trivial is you are not experienced in performance tuning. To that
end DTA can probably be a help. But if you are able to get DTA running,
don't just slap on the index it suggests blindly, but try to understand
why they work as they do, and if you can for instance remove some column
without too much penalty.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.