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 ssrs?

99


Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?

555


How to get a list of columns in a view using the "sp_columns" stored procedure?

620


you want to be sure that queries in a database always execute at the maximum possible speed. To achieve this goal you have created various indexes on tables which other statement will keep the database in good condition? : Sql server administration

554


What are the restrictions while creating batches in sql server?

587






What is attribute? : sql server analysis services, ssas

591


What is difference in performance between insert top (n) into table and using top with insert?

539


Can you index views?

509


What is a constant or literal in ms sql server?

603


What is the tcp/ip port on which sql server runs?

570


what is a self join? Explain it with an example? : Sql server database administration

502


Where are sql server user names and passwords stored in sql server?

541


Why the trigger fires multiple times in single login?

730


What are trace flags and mention a few common trace flags used with sql server?

555


How to delete an existing database user?

537