April 21, 2016 at 11:19 am
Hi. Looking to put my results of this query all in one field comma separated. Any thoughts or help would be awesome! Thanks
Using 2000 and 2008R2.
SELECT vi.voucher
FROM vch_item vi
WHERE vi.po_num '446549'
April 21, 2016 at 12:12 pm
This article should help you:
http://www.sqlservercentral.com/articles/comma+separated+list/71700/
April 23, 2016 at 2:04 pm
Alternatively, in SSMS select the "output to text" option, then go to the query options for output to text and choose to use comma-delimited output.
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply