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

How can u debug your .net application?

576


How to count the number of objects present in a web page? How to count the number of radio buttons in a web page?

622


What is inproc mode in session?

501


Explain difference between dataset and recordset?

500


What is the difference between dynamic SGA and static SGA?

578






Which object encapsulates state or data of a user?

620


What is httpresponse?

502


what is command line compiler.what are the steps and how it is related to debugging.

1406


What's the use of response.output.write()?

756


Explain how cookies work.

590


Securitywise What are the Enhancements in 2.0?

1478


What is the advantage of mvc over asp.net? : Asp.Net MVC

494


Explain the various authentication mechanisms in asp.net.

480


How would you turn off cookies on one page of your website?

533


What is cookies cache and session?

536