2016-10-19 106 views
0


我想將數據從一個SQL Server導出到另一個SQL Server。我有大約12臺。其中11已成功導出卻有着問題在一個表中,它有2列,DateTime而出口我得到這個異常:約4025行使用SQL Server導出嚮導時無效的日期格式

- Copying to [dbo].[ClaimDetails] (Error) 
Messages 
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 SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Invalid date format". 
(SQL Server Import and Export Wizard) 

Error 0xc020901c: Data Flow Task 1: There was an error with Destination -  ClaimDetails.Inputs[Destination Input].Columns[Entrydate] on Destination - ClaimDetails.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 - ClaimDetails.Inputs[Destination Input]" failed because error code 0xC020907A occurred, and the error row disposition on "Destination - ClaimDetails.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 - ClaimDetails" (124) failed with error code 0xC0209029 while processing input "Destination Input" (137). 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 - ClaimDetails 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) 

它成功地複製和我有大約21794行,所以它有點難以在每一行手冊的樣子,所以我嘗試運行

SELECT 
    * 
FROM 
    ClaimDetails 
WHERE 
    ISDATE(ActualDate) = 0 

在這兩個領域,但它沒有顯示出一排,所以請讓我知道我能做什麼。

日期字段格式是這樣的 Date fields format look like this

感謝

回答

0

你應該設定日期格式第一。看看你的記錄應該是ymd

SET DATEFORMAT ymd; 

SELECT * 
FROM ClaimDetails 
WHERE ISDATE(ActualDate) = 0 
+0

我試過但同樣沒有顯示行 – mark

+0

也許你還需要爲目標數據庫設置日期格式。 –

+0

我不通過這個查詢應對數據,但是我應該創建一個數據庫與相同類型的相同列,然後嘗試導出? – mark

相關問題