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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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
What meant by Performance Tuning,how can we do the 
performance tuning on stored procedures and tell some steps 
to do the performance tuning
 Question Submitted By :: Bhaskar
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What meant by Performance Tuning,how can we do the performance tuning on stored procedures and tell some steps to do the performance tuning
Answer
# 1
PERFORMANCE TUNING:

Shortly : The performance tuning is  reduce the load of the
database.

stored procedure:
--create a sample performance tuning procedure

CREATE PROCEDURE dbo.spTestDelegator (@query bit) AS
BEGIN

--NOCOUNT is use to reduce the load 
--if its off the procedure get (full memory) of execution

SET NOCOUNT ON;

IF @query = 0
EXEC spTestFromAuthors
ELSE
EXEC spTestFromPublishers
GO

CREATE PROCEDURE dbo.spTestFromAuthors AS
SELECT * FROM authors
GO

CREATE PROCEDURE dbo.spTestFromPublishers AS
SELECT * FROM publishers
GO


STEPS:
1.Good code ideas
2.Reduces use more query in same procedure
3.use clear structure of code 
4.always done stored procedure is good. because,Transact-Sql
get load of execution
 
Is This Answer Correct ?    3 Yes 0 No
John
 
  Re: What meant by Performance Tuning,how can we do the performance tuning on stored procedures and tell some steps to do the performance tuning
Answer
# 2
Agree with John, Just to add this is a way to make our query
fast and to reduce the over load on server. 

The RECOMPILE option
SET NOCOUNT ON/OFF
Creating Indexes on tables are few points to fine tune our
query.
 
Is This Answer Correct ?    0 Yes 0 No
Parmanand
 
 
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What is normalization and its forms? Challenger-Financial3
What are the two virtual tables SQL Server maintains for triggers?  2
Difference between Function and Stored Procedure? C1-India4
Can we rewrite subqueries into simple select statements or with joins? Example? ASD1
What does the INSTEAD OF trigger do?  3
can you any body tell me while running BCP Out in instance in sql server 2000 is getting error. Error = [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.?  1
what is the Enterprise manager(2000) and management studio (2005)?  2
where do you use Isolations?give me some exmpale?  1
When do you create cluster and noncluster index? Satyam4
how to get the maximum among two tables,for example table 1 (dep1) have (emp_id,emp_name,salary) columns and table 2 (dept2) have (emp_id,emp_name,salary) columns,i want which employee have the maximum salary among two tables? Lason2
what purpose does OPENXML clause have in sql server stored procedure?  1
create procedure proc1 (@a int) as begin if @a=1 create table #temp(a1 int) else create table #temp(a1 int) end while executeing the above code it shows error like '#temp already exist' .why it shows an error? IBM5
How do we get current date in SQL Server 2000, Oracle, MS Access?  11
Which databases are part of SQL server default installation? Explain the usage of each? Accenture2
WHAT IS DIFFRENCE BETWEEN TRUNCATE AND DELETE STATEMENT CTS10
What is RAID and what are different types of RAID configurations? Wipro5
What is normalization in Database ?  4
could you please reply for these question: 1.About Use Apply? 2.Avoid cursors - When we have a situation that we can not avoid the use of cursor than what is the alternate solution? is there anything we can use instead of cursor to perform the desired task? which optiomize the peroformance too. 3.What is computed columns? Thanks in advance. Regards, Rupesh  3
wht is normalization?can u explain me in detail? TCS6
Explain the basic concepts of SQL server architecture?  2
 
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