Text was truncated or one or more characters had no match in the target code page When importing from Excel file

前端 未结 7 1000
甜味超标
甜味超标 2020-12-02 21:47

I have an excel file with four text columns: one of them is called ShortDescription which has the longest value. I created a table in SQL Server 2008 database, with four col

7条回答
  •  一整个雨季
    2020-12-02 22:29

    I got this error when I was trying to import a large file that had some chinese characters in it, and also some invalid (large) strings.

    The text file was saved in UTF8 format.

    My settings:

    On the General Option (didn't change anything):

    - Locale: English (United States) 
    - Unicode: Unchecked
    - Code Page: 65001 (UTF-8)
    

    There is an Advanced Option on the left

    - DataType (for column): Unicode String [DT_WSTR] (changed)
    - OutputColumnWidth: 4000 (that's the maximum) (changed)
    

    On the Review Data Type Mapping

    - On Error: Ignore
    - On Truncation: Ignore
    

    My target column had width = 50.

    I got no errors with these settings.

提交回复
热议问题