SyntaxFix
Write A Post
Hire A Developer
Questions
I may be a bit late to the party but this method works for me and is easier than the COALESCE method.
SELECT STUFF( (SELECT ',' + Column_Name FROM Table_Name FOR XML PATH ('')) , 1, 1, '')