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 are the data providers in ADO.NET framework?

594


What is a datagridview?

518


What do you know about ADO.NET's objects and methods?

522


What are the advantages of oledb compared with other classes?

2323


What is DataReader Object?

596






What is the executescalar method?

584


What is the hierarchy of data in databases?

502


How to add a check box or a dropdown list to a column in a datagrid?

535


Explain the role of data provider in ado.net?

546


What is the default Timeout for SqlCommand.CommandTimeout property?

510


What does ado stand for?

520


Define bubbled event?

515


What is dataset object? Explain the various objects in dataset.

594


Define table relations?

557


Which control of the BindingNavigator returns the current position within the data source?

733