2017-05-30 52 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.". 

一個行具有不適合目標表由於某種原因的值。您沒有指定數據類型,但我猜測輸出列可能不是適當的日期/時間列。

但是,不知道表設置和/或看到一些數據,我們只能猜測。

相關問題