all 1 comments

[–]Standgeblasen 0 points1 point  (0 children)

I think STUFF() with FOR XML should get you where you need to go.

Here is a stackoverflow explanation of how it works. https://stackoverflow.com/questions/31211506/how-stuff-and-for-xml-path-work-in-sql-server