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...


How to tune a stored procedure?

Answers were Sorted based on User's Feedback



How to tune a stored procedure?..

Answer / arun yadav

There could be 'n' reasons for slow performance. For tuning
the performance of a SP we need to know how much resources
it is using and how much time it takes in execution. We can
check this using the performance monitor (for example, RPC
Counter) and execution plan. Check if we are using
appropriate joins, table defrag, index rebuilt can be the
solutions.

Is This Answer Correct ?    9 Yes 1 No

How to tune a stored procedure?..

Answer / gopi a

Stored Procedure is Precompiled set of quries. Stored
Procedure performence fully depended on this queries. First
Look the queries performence using Execution Plan. After
find the Queries, just check the Index(for table used in
query) and look the join conditions between tables in the
query. - This is way we need to approch to tune the SP.

Is This Answer Correct ?    6 Yes 2 No

How to tune a stored procedure?..

Answer / virgilio

The statements from above are correct but one main thing
that might speed a proc up is the naming convention.
If you create a user defined Storproc and you name it by
using the "Sp_" prefix SQL thinks is a System Store Proc
and goes to the Master DB to look for the Object instead of
looking locally.

Is This Answer Correct ?    3 Yes 1 No

How to tune a stored procedure?..

Answer / arindam choudhury

suppose the query is correct in astored procedure then
1)we need to use tablename with (nolock) in our select
statements so that it does not create delay if other person
is updating the table at the same time it will show last
updated table recordset
2)if we dont need that much the database server to return
the number of records affected after executing any dml
statements which actually reduces the performance ,we can
use set nocount on -set nocount off before and after
writing the sql query,
3)wecan create lesser join statements if we can use
subqueries

these are the few steps to tune stored procedure

Is This Answer Correct ?    1 Yes 0 No

How to tune a stored procedure?..

Answer / vimal

Store procedure is a pre compiled code
it is doing single task of several task
it is used to reduce the execution time
if we want to call store procedure just we call its name

Is This Answer Correct ?    1 Yes 3 No

How to tune a stored procedure?..

Answer / neethu mohanan

stored procedure is used to write queries,if there is an
error in the query it willnot be saved.In this if there is
any parameters first declare it,and then the query is write.
Each stored procedure could have a name.We can create the
stored procedure for any tables in the database.
create database->create table->stored procedure.
format:

(stored procedure name)
(@parameter1 type(size),@parameter2 type(size))


//(query)
insert into tablename values(@parameter1,@parameter2 )

Is This Answer Correct ?    3 Yes 11 No

Post New Answer

More SQL Server Interview Questions

Any one plz send me SQL Server Developer/DBA resume for 4 years experience

0 Answers  


What is the guest user account in sql server? What login is it mapped to it? : sql server security

0 Answers  


Why use cursor in sql server?

0 Answers  


If i am handling 150 servers then how to check the active jobs of all the servers?

0 Answers  


If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio

0 Answers  


What is “asynchronous” communication in sql server service broker?

0 Answers  


How to convert numeric expression data types by assignment operations?

0 Answers  


How can we solve concurrency problems?

0 Answers  


How to define the name and server for a new dsn?

0 Answers  


Is Sql non procedural query language?

1 Answers   Verifone,


How to download and install microsoft .net framework version 2.0?

0 Answers  


How you can get a list of all the table constraints in a database?

0 Answers  


Categories