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

What is difference between standardization and normalization?

542


How we can compare two database data?

527


How many types of triggers are there?

579


Can foreign key be deleted?

534


Why do we use functions?

522






What is the default fill factor value?

593


When is update_statistics command used?

593


Why should you use or avoid select * statements?

582


Do you know what is lock escalation?

594


Can we write a distributed query and get some data which is located on other server and oracle database?

777


Which are ddl commands?

551


Which are the new data types introduced in sql server 2008?

518


What is a dbms wizard?

627


What is 4nf in normalization form?

576


What is the stuff and how does it differ from the replace function?

541