天天看點

ssis 導入 mysql 引号,逗号在CSV檔案中的字段中 - 使用SSIS導入到資料庫

ssis 導入 mysql 引号,逗号在CSV檔案中的字段中 - 使用SSIS導入到資料庫

I have a CSV file - It has many values having comma as a part of value.The commas within the fields will mislead my SSIS package to understand that file row has more columns than previously said!

How to resolve this?

Eg:

Name,Amount,Address

Me,20,000,My Home,India

you,23,300,Your Home,Where

here only 3 columns exist but SSIS assumes all commas used to separate fields;Actually not all.Amount Column and Address Column have extra commas.

解決方案

Use Text Qualifier in Flat file Connection Manager as ". This will separate only values out of quotes by commas. Your data from db will be enclosed in quotes.