SyntaxFix
Write A Post
Hire A Developer
Questions
How about this:
ISNULL(SUBSTRING(REPLACE((select ',' FName as 'data()' from NameList for xml path('')), ' ,',', '), 2, 300), '') 'MyList'
Where the "300" could be any width taking into account the max number of items you think will show up.