declare @temp varchar(max)
set @temp=''
select @temp=@temp+ [invoice document no#]+',' from Table

select SUBSTRING(@temp, 0, LEN(@temp))