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 are the unique and primary key constraints different?

1073


Do you know what is rank function?

1073


What is openrowset sql server?

1127


How to reaname table name without using sp_Rename in sql server..?

989


How to apply filtering criteria at group level with the having clause in ms sql server?

1001


What is a derived table?

925


How do I delete a sql server database?

1041


What is user-defined function? Explain its types i.e. Scalar and inline table value user-defined function?

900


Why truncate is ddl command?

1062


what is the maximum size of a row? : Sql server database administration

1011


why would you use sql agent? : Sql server database administration

1208


How to create a user name in a database?

1052


Differentiate between ms sql server reporting services vs crystal reports?

898


What is logshipping and its purpose?

990


What is cursors?

1178