Sql server - stored procedures vs functions

Functions are computed values and cannot perform permanent environmental changes to SQL Server (i.e. no INSERT or UPDATE statements allowed).
A Function can be used inline in SQL Statements if it returns a scalar value or can be joined upon if it returns a result set.

enter image description here

Comments

Popular posts from this blog

Find pair whose sum is k - java

Class, Reference and Object