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

What is the difference between a Stored procedure and function?

Answer Posted / viren chakraborty

a stored procedure is better when returning one or more
rows.
a function is better when returning a single scalar value.
function and procedure, both can accept parameters and both
also support output parameters.
for programmers, stored procedures are the way to go
because they directly return the result of a given select
statment.
in a function you will explicitly have to return a value
using return statement and returning more than 1 value
using a function is much more complicated.
the procedure is capable of doing all kinds of things
(select/insert/update/delete) and hence, it is better

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is custom events? How to create it?

1016


Why session is used in asp.net?

987


What is .net framework and what are the main components of it?

810


What do you mean by role-based security?

945


Explain the namespace classes used in asp.net mvc? : asp.net mvc

954


Explain form level validation and field level validation?

956


What are the advantages and limitations of query string?

1005


What is Dynamic Web and discuss its usage with the help of real life examples?

998


Differentiate between a hyperlink control and a linkbutton control.

940


What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?

961


What is the difference between dynamic SGA and static SGA?

1087


Difference between .NET and previous version?

2535


Explain the difference between overriding and overloading?

957


What is difference between asp.net and asp?

1003


Is sql backend or frontend?

969