What are the differences between stored procedure and
functions in SQL Server 2000?

Answer Posted / arvind kumar

there main difference:::
1 sp takes input,output parameters, function takes only
input parameters.
2 temparary variables required to store return values of
sp. in functions temparary variables will be optinale.
3 sp can not be called directly into DML statements ,
functions can be called directly into DML statements.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a unique key constraint?

527


What are filegroups in sql server?

581


What is the sql case statement used for? Explain with an example?

536


What do you understand by a view? What does the with check option clause for a view do?

601


How to drop existing views from a database in ms sql server?

528






What is federation member?

93


What is single-user mode?

522


Can you use order by when defining a view?

571


How do I open a .db file?

478


how would you troubleshoot blocking? : Sql server database administration

518


Can we use where clause in union?

593


Thanks to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?

522


What is a join in sql?

584


While using a cursor, how can you differentiate between a deleted row and a row that has been inserted with null data values?

552


Explain the different types of joins?

566