Possible Duplicate:
SQL Server: Can I Comma Delimit Multiple Rows Into One Column?
I have a bunch of values in a data source that i am trying to output as one single row:
SELECT
'|| Id == "' + cast(ID as varchar(100)) + '"'
FROM
dbo.CAItem
WHERE
isactive = 1
This is the correct data, but I would like to output it as a single row instead of individual rows for each result so that the my return would be one single row like this:
|| Id == "4431" || Id == "4436"