Erorr when export database in sql 2008
When I export data in tablepersonal_2011 to tablepersonal 2010, it has a problem 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 10.0" Hresult: 0x80004005 Description: "The statement has been terminated.". An OLE DB record is available. Source: "Microsoft SQL Server Native Client 10.0" Hresult: 0x80004005 Description: "The INSERT statement conflicted with the FOREIGN KEY constraint "FK_TablePersonalInfoItems_2010_TablePersonalInfo_2010". The conflict occurred in database "LaodongPortal_HN", table "dbo.TablePersonalInfo_2010", column 'PersonalInfoId'.". (SQL Server Import and Export Wizard) Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "input "Destination Input" (348)" failed because error code 0xC020907B occurred, and the error row disposition on "input "Destination Input" (348)" 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 1 - TablePersonalInfoItems_2010" (335) failed with error code 0xC0209029 while processing input "Destination Input" (348). 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 component "Source 1 - TablePersonalInfoItems_2011" (209) 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 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 component "Source - TablePersonalInfo_2011" (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. any ideals? Thanks
February 10th, 2011 9:26pm

The INSERT statement conflicted with the FOREIGN KEY constraint "FK_TablePersonalInfoItems_2010_TablePersonalInfo_2010". The conflict occurred in database "LaodongPortal_HN", table "dbo.TablePersonalInfo_2010", column 'PersonalInfoId'.". That says it all right there. Your destination table has a foreign key relationship on column PersonalInfoID that would get violated by the insertion of data.Todd C - MSCTS SQL Server 2005 - Please mark posts as answered where appropriate.
Free Windows Admin Tool Kit Click here and download it now
February 10th, 2011 9:35pm

But data export process has been implemented with several hundred rows and then new problems. How do I find and fix this?
February 10th, 2011 10:43pm

hello probably at your base table there is no "PersonalInfoId" therefore your insert cannot be completed... just to solve your problem, you check if there is a PersonalInfoId at your table by using the lookup transformation and then for any unmatched values, you can save them at another table or something like text file... by doing this, if it's necessary you can insert those unmatched records later... but if i were you i would use "insert trigger" so that the related tables will all be affected while being inserted... hope this helps
Free Windows Admin Tool Kit Click here and download it now
February 11th, 2011 9:02am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics