how to load Text file Thorn(þ) delimited into sql-server 2012

人盡茶涼 提交于 2019-12-13 02:26:58

问题


I have text file something like this

col1þcol2þcol3þcol4
aaaþbbbþcccþddd
xxxþyyyþzzzþabs
123þtyehþyetþethrr

i tried loading into sql-server using ssis package after following steps from here but i couldn't find solution,could somebody guide me in my execution

The Package fails :

here's snap shot from program execution

[Flat File Source [8]] Error: Data conversion failed. The data conversion for column:<column namesss> 

it outputs like this

the changes i tried making: like this


回答1:


Change thorn to be your column delimiter, not your Row delimiter. Then change your row delimiter to be line break (presumably).

To do any more we'll need to see your table definitions and the rest of your package definition, particularly the column assignments.



来源:https://stackoverflow.com/questions/20605599/how-to-load-text-file-thorn%c3%be-delimited-into-sql-server-2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!