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

How to find the login name linked to a given user name?

1011


What is checkpoint in sql server?

1155


Where are full-text indexes stored?

989


can a database be shrunk to 0 bytes, if not, why? : Sql server administration

1211


Does index speed up select statements?

1010


What are recommended options to be used while using db mirroring? : sql server database administration

1152


What is transact-sql language?

1090


How to delete multiple rows with one delete statement in ms sql server?

1024


How to filter out duplications in the returning rows in ms sql server?

1140


How to provide default values to function parameters?

1133


What is advantage data architect?

922


What is row_number () and partition by in sql server?

1078


What is factless fact table? : sql server analysis services, ssas

1028


How to download and install the scaled-down database adventureworkslt?

991


How to get the definition of a stored procedure back?

977