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

前端 未结 16 655
小蘑菇
小蘑菇 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条回答
  •  情话喂你
    2021-01-31 14:23

    The problem of converting from any non-unicode source to a unicode SQL Server table can be solved by:

    • add a Data Conversion transformation step to your Data Flow
    • open the Data Conversion and select Unicode for each data type that applies
    • take note of the Output Alias of each applicable column (they are named Copy Of [original column name] by default)
    • now, in the Destination step, click on Mappings
    • change all of your input mappings to come from the aliased columns in the previous step (this is the step that is easily overlooked and will leave you wondering why you are still getting the same errors)

提交回复
热议问题