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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the filtered indexes?

1018


How to delete duplicate rows?

971


What is the process of normalising?

987


Difference between Logical Page and Physical Page in SSRS.

474


What is wrong with sql server client libarary dll, ntwdblib.dll?

1030


Can you index views?

888


What is difference between delete and truncate commands?

1061


List some major differences between triggers and stored procedures?

895


What is a transactions?

1027


How to create a large table with random data for index testing in ms sql server?

1012


Is truncate autocommit?

925


Explain what is row_number function?

1004


What are the different types of normalization?

1139


Can we take the full database backup in log shipping?

931


What is cte (common table expression)?

1015