Difference between Function and Stored Procedure?

Answer Posted / madhu

stored procedure when executed generates execution plan
once and next time when it is executed again it will use
the generated execution plan,it does not generate it again.

Function compiles from the beginning and prepares the trace
or execution each time it is called.

Is This Answer Correct ?    20 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does COMMIT command do?

626


What are the different kinds of ssrs reports?

170


What is cube dimension? : sql server analysis services, ssas

536


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

553


Explain ranking functions?

610






Can we add a cpu to sql server?

522


You are doing log shipping due to some reasons it is failing. How you will proceed from there

1549


can a database be shrunk with users active? : Sql server administration

567


What happens if null values are involved in datetime operations?

537


What is the difference between varchar and nvarchar datatypes?

572


When columns are added to existing tables, what do they initially contain?

627


What is the difference between NOROW and LOCKROW?

2239


How to modify the underlying query of an existing view?

535


How to connect sql server management studio express to sql server 2005 express?

582


What is autocommit mode in sql server?

545