2009-06-23 5 views
0

J'ai essayé d'importer une table d'Oracle 10g dans SQL Server 2005 à l'aide de l'assistant d'importation de tâches et je continue à obtenir cette erreur:Erreur d'importation sur les dates (Importer à partir d'Oracle 10g vers le serveur SQL 2005)

- Copying to [PersonDB].[PEOPLE] (Error) 
Messages 
Error 0xc0202009: Data Flow Task: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. 
An OLE DB record is available. Source: "Microsoft SQL Native Client" Hresult: 0x80004005 Description: "Invalid character value for cast specification". 
(SQL Server Import and Export Wizard) 

Error 0xc020901c: Data Flow Task: There was an error with input column "EFFCHGDT" (416) on input "Destination Input" (269). 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: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "input "Destination Input" (269)" failed because error code 0xC020907A occurred, and the error row disposition on "input "Destination Input" (269)" 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: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Destination - PEOPLE" (256) failed with error code 0xC0209029. 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 0xc0047021: Data Flow Task: SSIS Error Code DTS_E_THREADFAILED. Thread "WorkThread0" has exited with error code 0xC0209029. There may be error messages posted before this with more information on why the thread has exited. 
(SQL Server Import and Export Wizard) 

Error 0xc02020c4: Data Flow Task: 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: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "Source - PEOPLE" (1) 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) 

Error 0xc0047021: Data Flow Task: SSIS Error Code DTS_E_THREADFAILED. Thread "SourceThread0" has exited with error code 0xC0047038. There may be error messages posted before this with more information on why the thread has exited. 
(SQL Server Import and Export Wizard) 

Je suppose que cela a à voir avec le champ de date dans Oracle. J'ai exécuté le même processus sur sql server express 2008 et il importé sans aucune erreur.

Est-ce que quelqu'un sait comment je peux faire fonctionner le processus d'importation avec sql server 2005?

Merci à l'avance

Répondre

1

vous utilisez probablement les nouvelles dataypes date dans le serveur SQL 2008 qui n'existent pas en 2005 comme datetime2. dans le serveur SQL 2005, le type de données datetime ne remonte au 1er Janvier, 1753

de sorte que vous devez soit les stocker sous forme de chaîne en 2005, ou le modifier à 1/1/1900

ou

utilisation SQL Server 2008 avec les types de données correctes

jeter un oeil à cela, comme vous pouvez voir la première date n'est pas valable

select isdate('15000101'), isdate('17530101'),isdate('20080101') 
Questions connexes