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

前端 未结 16 661
小蘑菇
小蘑菇 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:12

    At some point, you're trying to convert an nvarchar column to a varchar column (or vice-versa).

    Moreover, why is everything (supposedly) nvarchar(max)? That's a code smell if I ever saw one. Are you aware of how SQL Server stores those columns? They use pointers to where the column is stored from the actual rows, since they don't fit within the 8k pages.

提交回复
热议问题