Use for complex processing (involve DML, transaction and exception handling)
Use for computations
Database Modifications
Yes (INSERT, UPDATE, DELETE)
No
Syntax
Use EXEC to run
Used in SELECT statement
Parameters
Input, output, input/output
Input only
Return Type
1. Without RETURN, automatically implicit return a scalar value. 2. With RETURN, return a scalar value. 3. Without RETURN, use SELECT to return a result set
Must return a value, which can be a scalar value or a table value