Applies ToSQL Server 2016 Developer - duplicate (do not use) SQL Server 2016 Enterprise - duplicate (do not use) SQL Server 2016 Enterprise Core - duplicate (do not use) SQL Server 2016 Standard - duplicate (do not use) SQL Server 2016 Service Pack 2 SQL Server 2017 on Windows SQL Server 2017 Developer on Windows SQL Server 2017 Enterprise on Windows SQL Server 2017 Enterprise Core on Windows SQL Server 2017 Standard on Windows SQL Server 2019 on Windows

Symptoms

Assume that you have a database in Microsoft SQL Server 2016 or 2017 that has transparent database encryption enabled, or is in the process of being enabled or disabled. If the database contains corruption such that a GAM extent is improperly marked as unallocated in the GAM or PFS page for the extent, it is possible for the encryption scan to incorrectly assume that the GAM page is unallocated, and then format the page. In this case, a subsequent restart of the server will cause the database to be marked suspect upon recovery, and you may receive the following error message:

DateTime SPID      Error: 5243, Severity: 16, State: 8.

DateTime SPID      An inconsistency was detected during an internal operation. Please contact technical support.

Notes

  • This fix will prevent the encryption scan from formatting the corrupt GAM page, but it will not address the database inconsistency.

  • If the customer is frequently pausing and resuming the encryption scan by using Trace Flag (TF) 5004, this issue may be more likely to occur, and you may see multiple dumps.

Status

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

Resolution

Cumulative Update Information:

This issue is fixed in the following cumulative updates for SQL Server:

About cumulative updates for SQL Server:

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:

More information

Learn about the terminology that Microsoft uses to describe software updates.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.