How do i perform Distributed Transactions in SQL Server 2000?

  • Hi,

    I'm getting the following error when i tried to run a script which updates 2 different rows in two diffrent servers.

    Server: Msg 7391, Level 16, State 1, Line 110

    The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.

    [OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]

    Follwing is the query i'm using in script.

    BEGIN TRANSACTION

     UPDATE Relocation_Accounting_Service  SET   ErasEnabled  = @ErasEnabled

       ,UpdateDt  = @UpdateDt  WHERE TransId = @TransId     

                                                              

      UPDATE IC2.IC2.DBO.Customer_file SET  UpdateID = @UpdateUserId

       ,UpdateDt = @UpdateDt WHERE TransId = @TransId

    I tried giving BEGIN DISTRIBUTED TRANSACTION, but still same problem persists.

    Can anyone give any suggestions?

     

     

  • Have a look in BOL (Books on Line) about distributed transactions (lots to read) and check that you have everything required in place for this to work.

    /Kenneth

  • I got solution for this.

    I need to set XACT_ABORT on in that session.

    thanx for u'r suggestions.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply