简体   繁体   English

SQL Server将csv文件导入到表中-是否在表中缺少列?

[英]SQL Server import csv file to table -Messing the columns in table?

Hi iam importring the data from .csv file to table. 嗨,我将数据从.csv文件导入表中。 i have first columns in the csv file is 我在csv文件中有第一列是

California    COOL
Houston       HOT     
Dalla,TX      HOT  

after ssis package the data in the table is looking like ssis打包后,表中的数据看起来像

California  COOL
Houston     HOT
Dalla       TX,HOT

I am unable to figure out my problem, can you help me guys ? 我无法解决我的问题,您能帮我吗?

You need to open that Data Flow task for editing and then open Flat File Source which is used for csv file. 您需要打开该数据流任务进行编辑,然后打开用于csv文件的平面文件源。 In the Flat file connection manager editor, select Advanced tab, and then change the column delimiter to Tab from ,. 在平面文件连接管理器编辑器中,选择“高级”选项卡,然后将列定界符从更改为“选项卡”。 Here is the reference link for the same. 这是相同的参考链接。 http://blog.sqlauthority.com/2011/05/12/sql-server-import-csv-file-into-database-table-using-ssis/ http://blog.sqlauthority.com/2011/05/12/sql-server-import-csv-file-into-database-table-using-ssis/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM