Statistics are removed after rebuilding a specific partition of an partitioned aligned index on a partitioned table in SQL Server

Applies to: SQL Server 2014 DeveloperSQL Server 2014 DeveloperSQL Server 2014 Enterprise

Symptoms


Assume that you create a partition-aligned index for a partitioned table in an instance of SQL Server. When you rebuild the index on that specific partition, the statistics of the index are lost. This issue occurs in the following scenarios.

Scenario 1
  • You have a partitioned table.
  • You have a partitioned index with the STATISTICS_INCREMENTAL option turned OFF.

When you do an Online Index Rebuild on a specific partition, statistics on the underlying table are lost.

Scenario 2
  • You have a partitioned table.
  • You have a partitioned index with the STATISTICS_INCREMENTAL option turned ON.

When you do an Index Rebuild on a specific partition, statistics on the underlying table are lost.

Resolution


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

    Cumulative Update 2 for SQL Server 2016 SP1 
About cumulative updates for SQL Server

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  that Microsoft uses to describe software updates.