Skip to content

Instantly share code, notes, and snippets.

@lbehm
lbehm / STRING_AGG.cs
Last active May 16, 2023 14:16 — forked from FilipDeVos/Aggregate_Concatenate.sql
SQL Server Aggregate to concatenate strings - shim for STRING_AGG
using System;
using System.Data.SqlTypes;
using System.IO;
using System.Text;
using Microsoft.SqlServer.Server;
[Serializable]
[SqlUserDefinedAggregate(
Format.UserDefined,
IsInvariantToNulls = true,