Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How can I embed commas with double quotes when exporting .csv file?

$
0
0

Hi, having a bit problem when I am trying to export data from .xlsx file to .csv file.The root cause is because some fields contains comma in the data, and i want to export that kind of cells with double quotes.For example, a cell value is John, Smith. I want export it into csv as "John, Smith" so that when my another application reads this csv file, it won't split the name into two cells.

I noticed if I manually save the .xlsx as .csv in EXCEL, it works perfectly. But in SSIS, the name will be wrote into csv without double quotes. I know I can use Derived Column to embed every cell with double quotes; but it's just NOT COOL and UGLY.

Anybody has any clue if it's a possible mission or not? Thanks.


Viewing all articles
Browse latest Browse all 24688

Trending Articles