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

Explain for xml explicit mode?

559


List out the different types of locks available in sql server?

553


How to count groups returned with the group by clause in ms sql server?

556


Explain “row_number()” in sql server with an example?

519


How do I completely remove sql server instance?

566






How do I shrink an ldf file?

563


Does hive support indexing?

515


What does it mean to be in union?

518


Define indexes?

601


What is normalization and what are the advantages of it?

515


What is lock escalation and what is its purpose?

555


What are the operating modes in which database mirroring runs?

602


What is lookup override?

584


How network traffic be reduced by using the stored procedure?

580


can an automatic recovery be initiated by a user? : Sql server administration

514