Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.97 KB

File metadata and controls

37 lines (29 loc) · 1.97 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords
CLR User-Defined Functions
SQL Server CLR integration allows you to create user-defined scalar-valued, table-valued, and aggregate functions in any .NET Framework programming language.
rwestMSFT
randolphwest
12/27/2024
sql
clr
reference
building database objects [CLR integration], user-defined functions
functions [CLR integration]
common language runtime [SQL Server], user-defined functions
database objects [CLR integration], user-defined functions
user-defined functions [CLR integration]

CLR user-defined functions

[!INCLUDE SQL Server]

User-defined functions are routines that can take parameters, perform calculations or other actions, and return a result. You can write user-defined functions in any .NET Framework programming language, such as [!INCLUDE c-sharp-md] or [!INCLUDE visual-basic-md] .NET, to use on [!INCLUDE ssnoversion-md].

There are two types of functions: scalar, which returns a single value, and table-valued, which returns a set of rows.

In this section

The following table lists the articles in this section.

Article Description
CLR scalar-valued functions Covers implementation requirements and examples of scalar-valued functions.
CLR table-valued functions Discusses how to implement and use table-valued functions (TVFs), as well as differences between [!INCLUDE tsql] and common language runtime (CLR) TVFs.
CLR user-defined aggregates Describes how to implement and use user-defined aggregates.

Related content