Sapna Malik
What is the difference between stored procedure and functions?
By Sapna Malik in SQL Server on Mar 22 2011
  • Sapna Malik
    Mar, 2011 22

    diff. between stored procedure and function

    1. Functions are compiled and executed at run time.
    Stored procedures are stored in parsed and compiled format in the database.
    2. Functions are basically used to compute values. We passes some parameters to functions as input and then it performs some operations on the parameter and return output.
    Stored procedures are basically used to process the task.
    3. Functions can not be invoked from SQL Statements. Execute. SELECT
    operating system can be invoked from SQL Statements. Execute. SELECT
    4. Function return only one value where as procedure can more 
    than.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS