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

What do you know about normalization and de- normalization?

968


What is an identity column in insert statements?

1074


What are the main sources of data?

1142


What is the native system stored procedure to execute a command against all databases?

1084


How to convert a unicode strings to non-unicode strings?

1151


Tell me what is difference between clustered and non clustered index?

981


What happens to a statement batch if there is a compilation error?

1009


How is foreign key related to primary key?

1010


Detail about query optimizer?

1156


What command would you use to add a column to a table in sql server?

1354


What are relationships and mention different types of relationships in the dbms

1011


I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?

1182


What is checkpoint process in the sql server?

1067


Help!!!!!!!!!!!! My database has gone offline, it is highlighted as 'Suspect'. Foolishly, i haven't got a recent back up. Is there a way of quickly restoring the database? Thank you

1794


What is a partition key?

1028