What is the difference between Userdefined function and
stored procedure? Explain and give the example also

Answer Posted / manoj

1. function always run with select command while stored
procedure execute with execute command

2. function not provide output parameter facility
while stored procedure provide output facility

3. function always execute means it execute more than one
time while store procedure execute only one time

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which are the two editions in which SQL Azure database available?

99


How to find the source of a table in sql server?

523


Can we return Data from 4(more than 1) tables in stored procedure?

615


How to provide login information for a new odbc dsn?

536


What is log cache in sql server?

515






what stored procedure can you use to display the current processes? : Sql server administration

528


What are the dmvs?

568


What are the different index configurations a table can have?

511


What is RAID? What are the different types of RAID configurations?

612


Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .

1487


What is the size of transaction log file?

483


what are constraints? : Sql server database administration

517


What is row_number () and partition by in sql server?

519


What is create statement?

529


How to make a remote connection in a database?

532