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

How to delete all rows with truncate table statement in ms sql server?

977


What is policy management?

978


What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

1036


Define union, union all, minus, intersect?

961


How to check status of stored procedure in sql server?

958


What happens on checkpoint?

1007


How to check what was the last restore transaction LSN in Log shipping or Mirroring? when we don't have a Monitor or witness server.

3857


What is the difference between NOROW and LOCKROW?

2817


Explain the cursor lock types?

1029


What are the operating modes in which database mirroring runs?

1062


What are the pros and cons of putting a scalar function in a queries select list or in the where clause?

1199


Delete duplicate rows without using rowid.

1527


what are cursors? : Sql server database administration

1039


How to delete duplicate rows?

971


If you lose rights to your sql server instance what are the options to connect to sql server instance? : sql server security

1020