admin管理员组文章数量:1345127
I have a csv file in UTF-8 encoding. I want to use SSIS to load its data into a SQL server table. The table's column types are nvarchar(250). The SSIS shows error for all columns: cannot convert between unicode and non-unicode string data types.
The csv file's string columns become string [DT_STR] type in SSIS when I build a Flat File connection. If I convert columns to Unicode string [DT_WSTR] type, the SSIS can load csv data into SQL server table.
I know SSIS have a Data Conversion module to allow us convert each column's type. But that needs manual work to define each column's conversion. Is there any quick solution to convert all the columns in csv to Unicode string [DT_WSTR] type? The csv file cannot be changed.
本文标签: Can SSIS convert CSV file to nonunicode before loading into SQL serverStack Overflow
版权声明:本文标题:Can SSIS convert CSV file to non-unicode before loading into SQL server? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743789785a2539349.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论