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

前端 未结 16 659
小蘑菇
小蘑菇 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 dts data Conversion task is time taking if there are 50 plus columns!Found a fix for this at the below link

    http://rdc.codeplex.com/releases/view/48420
    

    However, it does not seem to work for versions above 2008. So this is how i had to work around the problem

    *Open the .DTSX file on Notepad++. Choose language as XML
    *Goto the  tag. Select all items within this tag
    *Find the string **DTS:DataType="129"**  replace with **DTS:DataType="130"**
    *Save the .DTSX file. 
    *Open the project again on Visual Studio BIDS
    *Double Click on the Source Task . You would get the message
    
    the metadata of the following output columns does not match the metadata of the external columns with which the output columns are associated:
    ...
    Do you want to replace the metadata of the output columns with the metadata of the external columns?
    
     *Now Click Yes. We are done !
    

提交回复
热议问题