FIX: It takes longer than expected to create a filtered statistic after you create a clustered index on a partitioned table in SQL Server 2008 R2

Article translations Article translations
Article ID: 2875260 - View products that this article applies to.
Expand all | Collapse all

On This Page

Symptoms

Consider the following scenario:
  • You have a partitioned table that contains a nonclustered index in Microsoft SQL Server 2008 R2.
  • You create a clustered index that is based on the first column in the partitioned table.
  • The table uses the partition key as the first column.
  • You create a filter on the partition key.
  • You try to create a filtered statistic for one of the columns. 
In this scenario, it takes longer than expected to create the statistic.

Notes

  • The query plan that generates a CREATE STATISTICS statement indicates that the query performed a full scan on all the partitions.
  • If you create another nonclustered index, it does not take longer than expected to create the statistics for columns that are not related to the nonclustered indexes.

Resolution

The issue was first fixed in the following cumulative update of SQL Server.

Cumulative update 9 for SQL Server 2008 R2 SP2

About cumulative updates for SQL Server

Collapse this imageExpand this image
assets folding start collapsed
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:
Collapse this imageExpand this image
assets folding end collapsed

Status

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

Properties

Article ID: 2875260 - Last Review: October 28, 2013 - Revision: 1.0
Applies to
  • Microsoft SQL Server 2008 R2 Service Pack 2, when used with:
    • Microsoft SQL Server 2008 R2 Datacenter
    • Microsoft SQL Server 2008 R2 Developer
    • Microsoft SQL Server 2008 R2 Enterprise
    • Microsoft SQL Server 2008 R2 Standard
Keywords: 
kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2875260

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com