Differnce between Stored procedure and user defined functions?

Answer Posted / sivacharan svs

Funtion Should Return a value
Procedure may or may not return a value
Function can be used in Your Select Quries
Procedure has to be passed with or with out parameters
Select Getdate() as date
Function returns date time here


The resultant value of the stored procedure can be used in
application where as the resultant value of the stored
procedure is used in a query.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is aggregate root?

494


Define atomicity?

574


What is ado recordset?

498


How to identify the updated rows in a dataset?

517


What is difference between connected and disconnected architecture in ado.net?

585






How to load multiple tables into a dataset?

540


What is the role of the dataset object in ado.net?

571


What is difference between datagridview and datagrid control in winforms?

513


What is the difference between DataReader and DataSet in ADO.NET?

588


Is datareader faster than datatable?

535


Describe briefly an ADO.NET Dataset ?

550


What is difference between executequery and executeupdate?

498


Define Execute Scalar?

553


Why is it important to close an ado.net application?

531


What is the full form of ado.net?

508