SSIS - the value cannot be converted because of a potential loss of data

前端 未结 1 659
醉梦人生
醉梦人生 2021-01-17 10:02

I am relatively new to SSIS. I am trying to extract information from an Oracle database using Microsoft OLEDB for Oracle and I am using this query:

SELECT I         


        
相关标签:
1条回答
  • 2021-01-17 10:48

    This is a common thing. The default in a lot of cases for imports into ssis from another type of system where metadata for columns cannot be determined is to default to str(50). Since you are trying to push that into a one character column, it assumes that you may lose data. Simply go into the source component by right clicking and choosing "Show Advanced editor..."

    Then navigate to the last tab (Input and Output Properties)

    Click the + next to OLE DB Source Output

    Click the + next to Output Columns

    Highlight the ID column

    Scroll to the Length Data Type Property on the right of the dialog box and change it from 50 to 1.

    0 讨论(0)
提交回复
热议问题