What is the difference between a Stored procedure and function?

Answer Posted / madhavi latha

stored procedute can return only one integer value.while
function can return more than one value.

we can not use select statement with storedprocedures like
select <spname> where as UDF can.

storedprocedures can not return tables.where as UDF can
return more than one tables.

we can use functions inside the stored procedure but in UDF
we can not use storedprocedures.

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the asp.net validation controls?

691


What is application session?

687


what are the Custom controls in asp.net?

763


What is routing in MVC?

792


Is asp net front end or backend?

721


Why the javascript validation not run on the asp.net button but run successfully on the html button?

728


what cut off mark for po's,what questions they asked for interview?

1615


What is connection pooling and how to enable and disable connection pooling?

702


What are ASHX files?

794


Dataset is the disconnected environment. suppose if you are binding records to gridview (disconnected environment) and you are making changes to the the grid but before updating the database if any other user modify the data, how will you avoid such problem?

1920


What is latest version of asp.net mvc? : Asp.Net MVC

677


If I have more than one version of one assemblies, then how will I use old version (how/where to specify version number?) In my application?

721


What is the difference between web.config and machine.config in ASP.NET?

812


What is the difference between table and query?

726


What is the use of worker process in asp.net?

719