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

Define bubbled event?

515


What is the difference between ado.net and oledb?

483


What is XML serialization

589


Explain why canot we use multiple inheritance and garbage collector paralelly in .net?

595


What are the different methods by which we can populate a dataset?

687






What is the default Timeout for SqlCommand.CommandTimeout property?

504


What are the several execute methods of ado.net?

500


Explain which name space is used to get assembly details?

530


Explain how to find the given query is optimised one or not?

514


What is data control techniques?

509


What are the differences between OLEDB and SQLClient Providers?

564


What are the core objects of ADO.NET?

584


Explain About ado.net components/objects. Usage of data adapters and tell the steps to retrieve data.

558


Explain ado.net features? Benefits? Drawbacks?

555


Where is adodb dll located?

527