All transactions reported as completed even though some fail while trying to commit in SQL Server 2017

Applies to: SQL Server 2017 Developer on WindowsSQL Server 2017 Enterprise on WindowsSQL Server 2017 Enterprise Core on Windows

Symptoms


Consider the following scenario:

  • You run Distributed Transaction Coordinator (DTC) transactions in Microsoft SQL Server 2017.
  • A transaction is started, and SQL Server successfully prepares the transaction.
  • A transaction commit request is sent to SQL Server.
  • The database that is involved in the transaction is restarted.

In this scenario, the transaction commit request from DTC fails because the database restarted. However, in some cases, SQL Server communicates to DTC that the transaction commit request was successful even though the request failed.

Resolution


This fix is included in Cumulative Update 1 for SQL Server 2017.

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References


Learn about the terminology Microsoft uses to describe software updates.