I am trying to convert rows integers to comma separate string but it is giving an error like conversion failed.
Conversion failed when converting the varchar value '134, ' to data type int.
I tried this query
declare @CategoryIDs varchar(100)
select @CategoryIDs = COALESCE(@CategoryIDs+', ','')+ Val from #table
and the table values are like this
#table
Val
134
135
136
and i want output like this 134,135,136
Thanks, Raj