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?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Should you normalize audio?

879


What is the recovery model? List the types of recovery model available in sql server?

843


What methods do you follow to protect from sql injection attack?

967


What is report snapshot?

142


Can you tell me about the concept of ER diagrams?

1018


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

1054


Explain where clause?

932


Is sql different from sql server?

999


Explain indexed views and partitioned view with their syntax.

1077


Can binary strings be used in arithmetical operations?

882


How do you start single user mode in clustered installations?

902


How to create new table with "create table" statements?

995


Explain the creation and execution of a user-defined function in the sql server?

996


there is a trigger defined for insert operations on a table, in an oltp system. The trigger is written to instantiate a com object and pass the newly inserted rows to it for some custom processing. What do you think of this implementation? Can this be implemented better? : Sql server database administration

856


what's the difference between a primary key and a unique key? : Sql server database administration

892