Hi Friends, in this article I will explain about what is the
differences between stored procedures and functions in SQL Server. In many interviews this question is
compulsory.
I already explained in the previous article Difference between TRUNCATE, DELETE and DROP commands in SQL SERVER.
Difference between stored procedures and
functions:
- Stored Procedure can return zero or n values whereas function can return 1 value.Function must return a value which is mandatory but in stored procedure it is optional. Procedure can return multiple values (max 1024).