How to concatenate all the records in a column returned by a query into one varchar string in T-SQL?

Posted by Ivan on Stack Overflow See other posts from Stack Overflow or by Ivan
Published on 2010-05-10T06:54:41Z Indexed on 2010/05/10 7:04 UTC
Read the original article Hit count: 297

Filed under:
|

A query (SELECT/FUNCTION/VIEW/PROCEDURE) returns a column of varchar records. I need to concatenate them all into one single varchar line. How do I best do it in T-SQL?

© Stack Overflow or respective owner

Related posts about tsql

Related posts about sql