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

What is an indexing strategy?

1010


What is SQL Azure Federations?

112


What is a benefit of using an after insert trigger over using a before insert trigger?

986


What is forward - only cursors / read only cursor?

1091


what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

949


Can you change the data type of a column in a table after the table has been created? If so, which command would you use?

1033


What is the filtered index?

1058


What is the difference between varchar and varchar(max) datatypes?

1078


Who developed sql server?

941


How to compose an inquiry to demonstrate the points of interest of an understudy from students table whose name begins with k?

1089


How to return the date part only from a sql server datetime datatype?

1103


What are advantages of ssrs or why we should use ssrs?

139


How to drop an existing user defined function in ms sql server?

1026


Determine when an index is appropriate?

1078


Is mysql better than sql server?

1062