I'm using SQL Server 2008 and would like to have a user defined function that concatenates the values of a single column, comma delimited, and returns it.
For example, a table with the following rows:
column1
---------
head
shoulders
knees
toes
The function would return the single value: head, shoulders, knees, toes