Viewing post 1 (of 1 total)
Hi,
Try with this Concat query
DECLARE @VariableName DataType
SELECT
@VariableName = COALESCE(@VariableName + ', ', '') + ColumnName
FROM
DataBaseName
WHERE
ColumnName IS NOT NULL
SELECT @VariableName
October 18, 2011 at 2:42 am
#1395740