FIX: An assertion error occurs when querying dm_db_stats_histogram DMF in SQL Server 2017

Applies to: SQL Server 2017 DeveloperSQL Server 2017 EnterpriseSQL Server 2017 Enterprise Core


When you use the dm_db_stats_histogram Dynamic Management Function to query statistics information about a table that contains one or more Timestamp or HierarchyId columns in an instance of Microsoft SQL Server 2017, an assertion error may occur. Additionally, you receive the following error message:


This fix is included in the following update for SQL Server:

Cumulative Update 8 for SQL Server 2017


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


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