How to write the T-SQL STRING_AGG function
问题 I need to write a STRING_AGG for my SQL Server 2014 master database. It is a built in function for SQL Server 2017 and Azure SQL. I have an application that executes stored procedures in an Azure SQL database, some of which use STRING_AGG . In our local development instance, we use a database on our localhost running on an older version of SQL Server. The issue is, because SQL Server 2014 doesn't have access to STRING_AGG , the stored procedures we wrote for our Azure SQL database won't work