我创建了ssis包,它从excel文件中获取数据并将数据插入到表中,我有一个Excel Source和Ole db connection 
但我得到以下错误:
    [Excel Source [1]] Error: There was an error with output column "F2" (18) on     
    output "Excel Source Output" (9). The column status returned was: "The value could 
    not be  converted because of a potential loss of data.".
    [Excel Source [1]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. 
    The "output column "F2" (18)" failed because error code 0xC0209072 occurred, and  
    the error row disposition on "output column "F2" (18)" specifies failure on  
    error.  An error occurred on the specified object of the specified component.  
    There may be error messages posted before this with more information about the 
    failure.
    [SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput 
    method on component "Excel Source" (1) returned error code 0xC0209029.  The 
    component returned a failure code when the pipeline engine called PrimeOutput().  
    The meaning of the failure code is defined by the component, but the error is 
    fatal and the pipeline stopped executing.  There may be error messages posted 
    before this with more information about the failure.
`
这条线:
The value could not be  converted because of a potential loss of data
建议您有一个字段,如字符串,可能比SQL表字段长.例如,你有一个60字符的字符串,你试图插入一个Varchar(50)字段?
或者可能是Int或类似的十进制数?
换句话说,检查数据类型是否匹配.
| 归档时间: | 
 | 
| 查看次数: | 29307 次 | 
| 最近记录: |