diff. between stored procedure and function1. 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. SELECToperating system can be invoked from SQL Statements. Execute. SELECT
4. Function return only one value where as procedure can more than.