declare @returnItem nvarchar(max) set @returnItem='' select @returnItem=@returnItem+','+[name] from 【TableName】
print @returnItem