Social Icons

Press ESC to close

User-defined FunctionsA collection of 1 post

In SQL Server, User-defined Functions (UDFs) are reusable subroutines that accept parameters, perform an action (like a complex calculation), and return a result.

Unlike Stored Procedures, functions cannot modify database state (e.g., you cannot INSERT or DELETE from physical tables inside a UDF). They are strictly for calculating or retrieving data.