0


Ich versuche, Daten von einem SQL Server zu einem anderen zu exportieren. Ich habe rund 12 Tabellen, unter denen 11 erfolgreich in einer Tabelle jedoch mit Ausgabe exportiert wurde, hat es zwei Spalten als DateTime beim Exportieren mir diese Ausnahme bin immer:Ungültiges Datumsformat bei der Verwendung des SQL-Servers Export-Assistent

- 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) 

Es erfolgreich Kopien um 4025 Zeilen und ich habe um 21794 Zeilen, so ist es ein wenig zu manuellen Blick schwierig in jeder Zeile, so habe ich versucht

SELECT 
    * 
FROM 
    ClaimDetails 
WHERE 
    ISDATE(ActualDate) = 0 

auf beiden Feldern läuft, aber es keine Zeile zeigt, so lassen sie es mich wissen, was ich tun kann.

Datumsfelder Format folgendermaßen aussehen Date fields format look like this

Dank

Antwort

0

Sie Datumsformat zuerst setzen soll. Mit Blick auf Ihre Aufzeichnungen sollte es ymd sein.

SET DATEFORMAT ymd; 

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

Ich habe versucht, aber gleich, keine Zeilen angezeigt – mark

+0

Möglicherweise müssen Sie auch Datumsformat für die Zieldatenbank festlegen. –

+0

Ich bin nicht mit Daten durch diese Abfrage fertig, aber sollte ich eine Datenbank mit den gleichen Spalten mit den gleichen Typen erstellen und dann versuchen, zu exportieren? – mark

Verwandte Themen