declare @s varchar(8000)
select @s=isnull(@s,'')+','+a from t
Select stuff(@s,1,1,'')