Import Package Error - Cannot Convert between Unicode and Non Unicode String Data Type

前端 未结 16 614
小蘑菇
小蘑菇 2021-01-31 13:29

I have made a dtsx package on my computer using SQL Server 2008. It imports data from a semicolon delimited csv file into a table where all of the field types are NVARCHAR MAX.

16条回答
  •  -上瘾入骨i
    2021-01-31 14:16

    Two solutions: 1- if the type of the target column is [nvarchar] it should be change to [varchar]

    2- Add a "Derived Column" component to the SSIS package and add a new column with the following expression:
    (DT_WSTR, «length») [ColumnName]

    Length is the length of the column in the target table and ColumnName is the name of the column in the target table. finally at the mapping part you should use this new added column instead of the original column.

提交回复
热议问题