In SQL Server, a function is a database object. It’s essentially a sequence of SQL statements that simply accept input arguments, conduct operations, and return the outcome.