Go to DotNetFunda.com
 Online : 200 |  Welcome, Guest!   Login
 
Home > Interview Questions > SQL Server Interview Questions > How do you optimize stored procedures in ...
  • Nominate yourself for FREE online training by Microsoft MVP on OOPS, ASP.NET, ADO.NET and Sql Server.
    Brought to you by DotNetFunda.Com. Hurry, seats are limited to 50 only.

  • Now you can recommend an article from any website to be selected as "Article of the Day" on DotNetFunda.Com website. If approved, that article will be featured on our home page.

General Notice: If you found copied contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.


SQL Server Interview Questions

How do you optimize stored procedures in SQL Server 2005

Author: Neeks | Posted on: 2/22/2009 9:35:46 PM | Category: SQL Server | Views:708 |  Print | Asked In: Many Interviews


Answer:
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).

Interesting?   Share and Bookmark this


Navigate to:

 Submit Interview Questions

What are the properties of the Relational tables? ...

What is DESCRIBE command in SQL Server 2005? What is its purpose? How to us ...

Random Interview Questions
Help: If for some reason you are getting the same question by clicking Next Question or Previous Question, Try clicking Categories link above.

Related interview questions



Advertisement


About Us | The Team | Advertise | Contact Us | Feedback | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
All rights reserved to DotNetFunda.Com. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks.
(Best viewed in IE 6.0+ or Firefox 2.0+ at 1024 * 768 or higher)