Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Advanced tool for optimizing T-SQL? [closed]

Is there a tool which can look at your T-SQL and suggest hints for better performance? For example it finds usage of SARGs and converts a query into one without use of a sarg. Or pinpointing inefficient use of joins.

I am looking for tools beyond the Database Engine Tuning Advisor & use of the Profiler. For example I am currently checking out Toad for SQL Server which has some optimization features.

Addition:

Toad has an optimizer where it creates different queries or scenarios for my query and evaluates the cost of each query but its suggestions are primitive & simple. It's in the right direction but hopefully the optimizer gets a lot more smarter over time and be more useful.

like image 796
Tony_Henrich Avatar asked Oct 25 '22 09:10

Tony_Henrich


1 Answers

While it won't cook breakfast nor repair your automobile, the LessThanDot SqlCop can highlight some wayward database code and objects which have an effect on performance. It is a best practices analyzer that is more application-oriented than the Microsoft Best Practices Analyzer (which is more DBA-oriented). The price is nice for both of them (free).

Check them out for yourself...

  • LessThanDot SqlCop

  • MS Best Practices Analyzer

like image 148
Phil Helmer Avatar answered Oct 27 '22 11:10

Phil Helmer