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 sql server mean?

538


Who developed sql server?

534


Explain the etl (extraction, transformation, and loading)?

567


What is update_statistics command?

576


What is ms sql server index?

565






When should you use an instead of trigger?

556


What is a mutating table error and how can you get around it?

538


What are the transaction properties?

559


List the advantages of using stored procedures?

563


What is an index. What are the types?

587


Explain syntax for viewing trigger?

542


How can we get count of the number of records in a table?

549


Explain Geography datatype in SQL Server

633


What is compound operators?

552


What is the difference between delete and truncate statements?

574