Differnce between Stored procedure and user defined functions?

Answer Posted / sharad kulat

Store Procedure Is first tme complie and make the
Execution plan & next time proc just call plan .so its get
execute fast.In case Function compile every request.

function & Store procedure return not only single but also
number of value .

function return number of value useing return type table.

You Can use Function with select ,case Statement ,same
thing can not do through Store procedure.

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain which name space is used to get assembly details?

530


How do you connect to sql server database without using sqlclient?

564


Describe the command object and its method.

526


List all the steps in order, to access a database through ado.net?

590


What is DataRowCollection?

629






Explain the different row versions available in table?

552


Define different execute methods of ADO.NET command object ?

553


What is ole db query?

527


What is variable view?

497


Define isolation?

539


How can we add/remove row's in "datatable" object of "dataset"?

541


What is the executescalar method?

586


Can we load multiple tables in a dataset?

546


What do you mean by performing asynchronous operation using command object?

517


how to create a quiz software using 4 options to answer and how to check with answers in the database and award marks....

3723