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 is the difference between a "where" clause and a "having" clause?

621


How to list all dsn entries on your local machine using odbc_data_source()?

559


How can you hide the sql server instances?

519


Explain steps of normalization?

527


How much does sql server 2016 cost?

538






How to disable stored procedure sql server?

965


what is the difference between Delete and Truncate command in SQL

630


How to select all columns of all rows from a table with a select statement in ms sql server?

578


What is the difference between ‘having’ clause and a ‘where’ clause?

553


What are the differences between substr and charindex in sql server.

499


Why I can not enter 0.001 second in date and time literals in ms sql server?

540


What is the definition for sql server 2000?

594


What is normalization of database?

605


What do you know about system database? : SQL Server Architecture

496


What is difference between rownum and row_number?

520