Error recovering database ‘%.*ls’. Could not connect to MSDTC to check the completion status of transaction %S_XID.

Details
Product: SQL Server
Event ID: 3437
Source: MSSQLServer
Version: 10.0
Component: SQLEngine
Symbolic Name: NODTC
Message: An error occurred while recovering database ‘%.*ls’. Unable to connect to Microsoft Distributed Transaction Coordinator (MS DTC) to check the completion status of transaction %S_XID. Fix MS DTC, and run recovery again.
   
Explanation

One or more distributed transactions that were using Microsoft Distributed Transaction Coordinator (MS DTC) were incomplete when the database was shut down. Recovery of this database failed because SQL Server cannot connect to MS DTC to complete or roll back the transactions.

   
User Action

To recover this database, you must first resolve the problem with MS DTC. To investigate the problem with MS DTC, examine the Windows event logs. If you cannot resolve the problem with MS DTC and recover the database, restore a backup of database.

   
   
Version: 9.0
Component: SQLEngine
Symbolic Name: NODTC
Message: An error occurred while recovering database ‘%.*ls’. Unable to connect to Microsoft Distributed Transaction Coordinator (MS DTC) to check the completion status of transaction %S_XID. Fix MS DTC, and run recovery again.
   
Explanation

One or more distributed transactions that were using Microsoft Distributed Transaction Coordinator (MS DTC) were incomplete when the database was shut down. Recovery of this database failed because SQL Server cannot connect to MS DTC to complete or roll back the transactions.

   
User Action

To recover this database, you must first resolve the problem with MS DTC. To investigate the problem with MS DTC, examine the Windows event logs. If you cannot resolve the problem with MS DTC and recover the database, restore a backup of database.

   
   
Version: 8.0
Component: SQL Engine
Message: Error recovering database ‘%.*ls’. Could not connect to MSDTC to check the completion status of transaction %S_XID.
   
Explanation
When you are using MS DTC to manage a distributed transaction across multiple servers and a loss of connectivity occurs, the distributed transaction is left in an unknown or “in doubt” state. Common sources of interruptions are

  • Network errors
  • Stopping MSSQLSERVER or MS DTC
  • Stopping other involved services

on one or more computers that are involved in the distributed transaction. After the connection is disrupted, MS DTC leaves all the transactions in progress at that stage in an inconsistent state. The “in doubt” transactions cause these symptoms because SQL Server cannot determine whether to commit or to roll back the transactions, and SQL Server needs MS DTC to tell it how to proceed.

For more information about errors 3437, 3437, and “Could Not Connect to DTC” when you start SQL Server, see the Microsoft Knowledge Base article 306366.

   
User Action
There are several different methods that you can use to resolve the inconsistent distributed transactions:

  • You can use the method described in “Troubleshooting MS DTC Transactions” in SQL Server Books Online.
  • If you stop MS DTC on one or more of the servers that are involved in the distributed transaction (or transactions), you might resolve the problem when you restart MS DTC.
  • Frequently, you can use the MS DTC administrative console:

    Windows 2000

    1. Type “mmc.exe” (without the quotation marks) in the Run dialog box to open Microsoft Management Console (MMC).
    2. In MMC, on the Console menu, click Add/Remove Snap-in.
    3. In the Add/Remove Snap-in dialog box, click Add.
    4. In the Add Standalone Snap-in dialog box, click Component Services, and then click Add to add the snap-in.
    5. Click Close.
    6. In the Add/Remove Snap-in dialog box, click OK.
    7. In the console root under Component Services, expand Component Services, point to Computers, point to My Computer, and then click Distributed Transaction Coordinator.
    8. Select Transaction List. You see transactions in the details pane. Right-click the transaction, and then click Resolve. You now have three options: Commit, Abort, or Forget. Choose the one that is appropriate for your situation.

    Windows NT

    1. Click Start, click Run, type “dac.exe” (without the quotation marks), and then press enter. The MS DTC Administrative Console opens.
    2. On the Transactions tab, right-click the transaction, and then click Resolve. You now have three options: Commit, Abort, or Forget. Choose the one that is appropriate for your situation.

    Related:

    Leave a Reply