2017-05-30 51 views
1

我试图使用sql server management studio 17将200k行的文本文件导入到sql server中。但是它显示以下错误:将文本文件导入到使用Microsoft SQL Server Management Studio的SQL Server时出现错误0xc0202009 17

Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. 
An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80004005 Description: "Invalid character value for cast specification.". 
(SQL Server Import and Export Wizard) 

Error 0xc020901c: Data Flow Task 1: There was an error with Destination - DimStudent.Inputs[Destination Input].Columns[DateOfBirth] on Destination - DimStudent.Inputs[Destination Input]. The column status returned was: "Conversion failed because the data value overflowed the specified type.". 
(SQL Server Import and Export Wizard) 


Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "Destination - DimStudent.Inputs[Destination Input]" failed because error code 0xC020907A occurred, and the error row disposition on "Destination - DimStudent.Inputs[Destination Input]" 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. 
(SQL Server Import and Export Wizard) 

Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Destination - DimStudent" (158) failed with error code 0xC0209029 while processing input "Destination Input" (171). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure. 
(SQL Server Import and Export Wizard) 

Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020. 
(SQL Server Import and Export Wizard) 

Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Source - DimStudent_txt returned error code 0xC02020C4. 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. 
(SQL Server Import and Export Wizard) 

我是新来的。如果有人能说出如何解决这个问题,那将是非常好的。

回答

0

该错误消息指出:

"Conversion failed because the data value overflowed the specified type.". 

一个行具有不适合目标表由于某种原因的值。您没有指定数据类型,但我猜测输出列可能不是适当的日期/时间列。

但是,不知道表设置和/或看到一些数据,我们只能猜测。

相关问题