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

Difference between Function and Stored Procedure?

Answer Posted / madhu

stored procedure when executed generates execution plan
once and next time when it is executed again it will use
the generated execution plan,it does not generate it again.

Function compiles from the beginning and prepares the trace
or execution each time it is called.

Is This Answer Correct ?    20 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any performance difference between if exists (select null from table) and if exists (select 1 from table)?

951


How to create a local temporary stored procedure?

995


Can you edit the .rdl code associated with a linked report?

160


What is change data capture (cdc) in sql server 2008?

1017


Tell me what is fill factor?

955


What is read committed?

1072


What is fill factor and pad index?

1005


What are different types of schemas?

935


How do you delete duplicate rows in sql server?

949


What are the advantages of user-defined functions over stored procedures in sql server?

1028


What are .mdf files?

931


What are key constraints?

967


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

963


List the different types of joins?

968


What happens if ntwdblib.dll is missing on your machine?

1138