August 21, 2019 at 7:45 am
Hi,
i am trying to export a table into csv, and it should be comma delimited with doublequotes around each value like this:
"value1","value2","value3"
this works fine, but one of the columns includes doublequotes as part of the value, so when its exported to csv, it breaks it into multiple columns. Anyone knows the best way to handle this so that its not splitting it up into multiple columns?
August 21, 2019 at 12:30 pm
Hi,
i am trying to export a table into csv, and it should be comma delimited with doublequotes around each value like this:
"value1","value2","value3"
this works fine, but one of the columns includes doublequotes as part of the value, so when its exported to csv, it breaks it into multiple columns. Anyone knows the best way to handle this so that its not splitting it up into multiple columns?
Yes. It's part of the "standard" for proper "CSV" creation (Google for it). You have to double up on embedded quotes to "escape" them properly.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 21, 2019 at 3:07 pm
What have you tried? As I recall SSMS export will not properly escape the text. I'm pretty sure tho SSIS csv export does.
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply