SQL Server 2005 stored procedures optimization

Question posted in Computer\IT Services on 08 2009
Rate question difficulty level 0 Votes

How do you optimize stored procedures in SQL Server 2005 ?

 
 
2 Answers
 

1.    Use as much as possible WHERE clause filters. Where Clause is the most important part for optimization

2.    Select only those fields which really require.

3.    Joins are expensive in terms of time. Make sure that use all the keys that relate the two tables together and don't join to unused tables, always try to join on indexed fields. The join type is important as well (INNER, OUTER).

* Disclaimer : 
Credit for this question goes to :
http://www.thinkinterview.com/interview-questions/cq6/q155/How-do-you-optimize-stored-procedures-in-SQL-Server-2005.aspx


08/14/2009
 
 
Use a lot as probable WHERE section filter. Where Clause is mainly vital part for optimization. Choose only those fields which really need. Joins are exclusive in words of time. Ensure that use all the keys that narrate the two tables simultaneously and do not join to idle tables, constantly try to join on indexed fields. I am currently enrolled into my Master's program in computer science at Headway University and regarding this topic hopefully my input will help you for sure.

05/08/2012
 
 
Add an answer*
 
Your name
Email
 
Location: Israel

add a question

arrow_blue


Now hiring!
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------