Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What meant by Performance Tuning,how can we do the
performance tuning on stored procedures and tell some steps
to do the performance tuning

Answers were Sorted based on User's Feedback



What meant by Performance Tuning,how can we do the performance tuning on stored procedures and tel..

Answer / john

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 ?    6 Yes 1 No

What meant by Performance Tuning,how can we do the performance tuning on stored procedures and tel..

Answer / ravi yanamala

1).Check the indexes,table scans and the statics
2)check whether any stored procedures are recompiles excessively
3)check whether SET NOCOUNT is OFF for any stored procedures or triggers
4)check the query whether written poorly r not.check the database normalization as too much normalization effects performance,check the usage of the cursors and temperory tables.

Is This Answer Correct ?    4 Yes 0 No

What meant by Performance Tuning,how can we do the performance tuning on stored procedures and tel..

Answer / parmanand

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 ?    1 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Can sql servers linked to other servers?

0 Answers  


What happens if you delete a table that is used by a view?

0 Answers  


How to create a testing table with test data in ms sql server?

0 Answers  


What is a transaction and what are ACID properties?

14 Answers   Config Systems, IBM, TCS, Virtusa,


What is the stored procedure?

0 Answers  


What is the difference between a HAVING CLAUSE and a WHERE CLAUSE?

11 Answers   World Tech, Yardi Software,


What is the difference between a fill factor of 100 and 0?

0 Answers  


How to list all stored procedures in the current database using ms sql server?

0 Answers  


Does sql server 2000 clustering support load balancing?

0 Answers  


How to convert numeric expression data types by assignment operations?

0 Answers  


What is Sqlpaging in SqlServer 2005 ?

0 Answers   MCN Solutions,


Explain partitioned view?

0 Answers  


Categories