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

Answer Posted / vijayabhaskarreddy

there are 3 main differences between sp and function.
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 ?    64 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If the job running very slow what is the action you do

1427


Explain raiserror in sql server?

577


What is repeatable read?

542


What does it mean to be in union?

529


Which data type columns are the best candidates for full-text indexing?

604






Explain the steps needed to create a scheduled job?

525


Is mysql the same as sql server?

515


How to update values in a table with update statements in ms sql server?

557


How do I find the default sql server instance?

525


Please explain what is “asynchronous” communication in sql server service broker?

511


How can we delete Duplicate row in table?

636


What is the difference between sdf and mdf?

679


Explain about system database?

580


Why do we partition data?

621


How to list all tables in the database using odbc_tables()?

570