Error while using FOR XML PATH statement

XML Path For was a hack used until SQL Server provided the String_agg command. Lots of posts here by @Banderson explaining the better way.

2 Likes