SQLTeam.com | Weblogs | Forums

Microsoft OLE DB Provider for SQL Server (Link problem)

i wan to connect the sql server through OLE database linking..please view the atatched files.
My SQL/management Studio version is: 2012
A

Blockquote
Operation stopped...

  • Initializing Data Flow Task (Success)

  • Initializing Connections (Success)

  • Setting SQL Command (Success)

  • Setting Source Connection (Success)

  • Setting Destination Connection (Success)

  • Validating (Success)

  • Prepare for Execute (Success)

  • Pre-execute (Success)

  • Copying Rows (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 OLE DB Provider for SQL Server" Hresult: 0x80004005 Description: "The statement has been terminated.".
      An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80004005 Description: "Violation of PRIMARY KEY constraint 'PK_AdditionalTaxRule_AdditionalTaxRuleCode'. Cannot insert duplicate key in object 'dbo.AdditionalTaxRule'. The duplicate key value is (1).".
      (SQL Server Import and Export Wizard)

    • Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "Destination 4 - AdditionalTaxRule.Inputs[Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Destination 4 - AdditionalTaxRule.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 4 - AdditionalTaxRule" (297) failed with error code 0xC0209029 while processing input "Destination Input" (310). 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 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: "The statement has been terminated.".
      An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80004005 Description: "Violation of PRIMARY KEY constraint 'PK_Accounts'. Cannot insert duplicate key in object 'dbo.Accounts'. The duplicate key value is (1).".
      (SQL Server Import and Export Wizard)

    • Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "Destination 2 - Accounts.Inputs[Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Destination 2 - Accounts.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 2 - Accounts" (127) failed with error code 0xC0209029 while processing input "Destination Input" (140). 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 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: "The statement has been terminated.".
      An OLE DB record is available. Source: "Microsoft OLE DB Provider for SQL Server" Hresult: 0x80004005 Description: "Violation of PRIMARY KEY constraint 'PK_ActivityMonitor'. Cannot insert duplicate key in object 'dbo.ActivityMonitor'. The duplicate key value is (PV, 118).".
      (SQL Server Import and Export Wizard)

Blockquote

please advised me how i can solve this problem.

  1. Check that the server you are connecting to uses the same port as the sql server you are connecting from.
  2. The other error suggest you are trying to write to a primary key
    'PK_ActivityMonitor'. Cannot insert duplicate key in object 'dbo.ActivityMonitor'.

The errors you have suggest that you have connected to both databases for the copy.
But you are getting multiple primary key errors.
That suggests that the tables you are copying into aren't empty and already have the rows you are trying to send.
Are you doing the copy twice or maybe your destination is set to be the same as the source.

Anyway it looks like you have multiple problems here.

Is there any simple way to connect SQL server through ole database linking.