Function vs. Stored Procedure in SQL Server -


I have been learning functions and stored procedures for a long time but I do not know why and when I should use the function or a Archived procedures they are looking for me the same way, probably because I am new to that.

Can anyone tell me?

The functions are calculated values ​​and can not make permanent environmental changes in SQL Server (i.e. INSERT or UPDATE statements are not allowed).

If this returns, then the function can be used in inline in the SQL statement. The value of a scalar can be included on it or if it returns the result group.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -