Is there any good way to build a comma-separated list in SQL Server? -


in firebird, there's aggregate called list() turns multiple results comma-separated string.

this function not appear exist in sql server. there equivalent doesn't involve big, long, ugly, slow workaround using for xml or building own clr udf? (yes, know methods. looking might not aware of.)

no, workarounds have use. have been asking group_concat equivalent since 2006:

http://connect.microsoft.com/sqlserver/feedback/details/247118/sql-needs-version-of-mysql-group-concat-function

...but item has received 13 up-votes (and 1 down-vote). don't blame microsoft focusing on other enhancements product in order drive sales , customer satisfaction. not lot of people have complained (at least not directly), , group_concat not marketing people can make sexy on slide deck or in commercial - developer productivity not sells licenses. (on other hand, i'd meet 14+ people managed silly things eomonth , iif implemented.)

so, if think functionality important have, please vote and, more importantly, comment on how improve productivity / bottom line:

fwiw, xml version ugly, not hard master. i've used in dozens of answers here on , don't have go anymore. don't find terribly slow. why think microsoft puts in natively faster? have same thing.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -