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 difference between stored procedure & function?

Answer Posted / khurram

1>Procedure can return zero or n values whereas function can
return one value which is mandatory.

2>Procedures can have input,output parameters for it whereas
functions can have only input parameters.

3>Procedure allow select as well as DML statement in it
whereas function allow only select statement in it.

4>Functions can be called from procedure whereas procedures
cannot be called from function.

5>Exception can be handled by try-catch block in a procedure
whereas try-catch block cannot be used in a function.

6>We can go for transaction management in procedure whereas
we can't go in function.

7>Procedures cannot be utilized in a select statement
whereas function can be embedded in a select statement.

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Suppose you want to implement the one-to-many relationships while designing tables. How would you do it?

911


What is the difference between a unique key and primary key?

894


Explain log shipping and mention its advantages.

988


Can we hide the definition of a stored procedure from a use?

1131


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

1153


Can two tables have the same primary key?

1130


What happens if you are trying to access a schema not owned by you?

911


What are the advantages of partitioning?

1041


What is data source document?

976


How to provide login information for a new odbc dsn?

977


Does partitioning ssd reduce performance?

844


How do triggers work?

878


Disadvantages of the indexes?

1042


When columns are added to existing tables, what do they initially contain?

974


What is an index in sql?

956