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

How to perform backup for certificates in sql server? : sql server security

595


How to delete a login name in ms sql server?

532


What is the difference between char, varchar and nvarchar?

568


Is it important for a database administrator to understand the operating system and file access?

506


What is row-level compre?

541






How to set a database state to offline in ms sql server?

534


How do I view views in sql server?

516


How do you run a trace?

515


What is format parameter in ssrs?

109


Do you know what are pages and extents? : SQL Server Architecture

548


What are the different sql server versions?

515


What is temporal table?

475


What are some of the pros and cons of not dropping the sql server builtinadministrators group? : sql server security

545


Define right outer join?

542


List few advantages of stored procedure.

537