Totuşi, funcţia pe care am făcut-o se bazează pe o facilitate nedocumentată.
Vezi: http://support.microsoft.com/default.aspx/kb/287515
Zice acolo: "The correct behavior for an aggregate concatenation query is undefined." Dar apoi spune: "In order to achieve the expected results from an aggregate
concatenation query, apply any Transact-SQL function or expression to
the columns in the SELECT list rather than in the ORDER BY clause."
Vezi şi:
http://databases.aspfaq.com/general/how-do-i-concatenate-strings-from-a-column-into-a-single-row.html
http://groups.google.com/group/microsoft.public.sqlserver.programming/msg/2d85bf366dd9e73e
Răzvan