ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
how do u do Performance tunning ?
 Question Submitted By :: Sam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how do u do Performance tunning ?
Answer
# 1
•	Table should have primary key 
•	Table should have minimum of one clustered index 
•	Table should have appropriate amount of non-
clustered index 
•	Non-clustered index should be created on columns of 
table based on query which is running 
•	Following priority order should be followed when 
any index is created a) WHERE clause, b) JOIN clause, c) 
ORDER BY clause, d) SELECT clause 
•	Do not to use Views or replace views with original 
source table 
•	Triggers should not be used if possible, 
incorporate the logic of trigger in stored procedure 
•	Remove any adhoc queries and use Stored Procedure 
instead 
•	Check if there is atleast 30% HHD is empty - it 
improves the performance a bit 
•	If possible move the logic of UDF to SP as well 


•	Remove * from SELECT and use columns which are only 
necessary in code 
•	Remove any unnecessary joins from table 
•	If there is cursor used in query, see if there is 
any other way to avoid the usage of this (either by SELECT 
… INTO or INSERT … INTO, etc) 
There are few hardware upgrades can be considered as well 
like separating index on different disk drive or moving 
tempdb to another drive. However, I am not suggesting them 
here as they are not quick way to improve the performance 
of query.
 
Is This Answer Correct ?    3 Yes 1 No
Bhaskar
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What is the differecne between equi-join and inner-join and natural join..Is there any difference or all are same? Microsoft2
What are the differences between stored procedure and functions in SQL Server 2000? TCS12
How do you troubleshoot SQL Server if its running very slow?  2
what is normalization? what is denormalization? Satyam5
what is maximum size of temp db? iSoft4
What is a transaction and what are ACID properties? IBM4
sql server has its default date format in da form "yy-mm-dd" its possible to convert da current date format of sql server to desired format. Now my question is dat how to get da previous and comin days date in my desired format??  1
How to write stored procedure to update the data in 10 tables  4
how to select 5 to 7 rows from a table, which contains 10 rows? IBM14
What is the difference between a Application Server and a Database Oracle2
what is the Enterprise manager(2000) and management studio (2005)?  2
What is the difference between IN and EXISTS operators in SQL Server? Intelligroup3
What is the difference between HAVING clause and the WHERE clause?  4
Is it possible to allow NULL values in foreign key? I s it possible to use different constraints for the same column in the table (i.e) (id int NOT NULL,UNIQUEUE)  1
Write an SQL query if u want to select the data from one block which intern reflects in another block ? thanx,do reply Covansys1
What is excution Plan in sql server TCS1
What is WITH CHECK OPTION Karur-Vysya-Bank-KVB2
when inserting to a table how many rows will be effected using triggers  1
What is an extended Stored Procedure?  1
What is a view?  4
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com