Go to DotNetFunda.com
 Online : 2480 |  Welcome, Guest!   Login
 
Home > Interview Questions > SQL Server Interview Questions > How do you optimize stored procedures in ...

call for mock interview

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