Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 1.74 KB

File metadata and controls

29 lines (24 loc) · 1.74 KB
title CLR User-Defined Aggregates
description SQL Server CLR integration allows you to create custom aggregate functions in managed code, which perform a calculation on a set of values and return a value.
author rwestMSFT
ms.author randolphwest
ms.date 12/27/2024
ms.service sql
ms.subservice clr
ms.topic reference
helpviewer_keywords
aggregate functions [CLR integration]
custom aggregates [CLR integration]
calculations [CLR integration]
user-defined functions [CLR integration]

CLR user-defined aggregates

[!INCLUDE SQL Server]

Aggregate functions perform a calculation on a set of values and return a single value. Traditionally, [!INCLUDE ssNoVersion] supported only built-in aggregate functions, such as SUM or MAX, that operate on a set of input scalar values and generate a single aggregate value from that set. [!INCLUDE ssNoVersion] integration with the [!INCLUDE dnprdnshort-md] common language runtime (CLR) now allows developers to create custom aggregate functions in managed code, and to make these functions accessible to [!INCLUDE tsql] or other managed code.

In this section

The following table lists the articles in this section.

Article Description
Requirements for CLR user-defined aggregates Provides an overview of the requirements for implementing CLR user-defined aggregate functions.
Invoke CLR user-defined aggregate functions Explains how to invoke user-defined aggregates.