DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 2892741 - Last Review: January 20, 2014 - Revision: 3.0

On This Page

Symptoms

Consider the following scenario:
  • You have a partitioned table in Microsoft SQL Server 2008, SQL Server 2008 R2, or Microsoft SQL Server 2012..
  • The table has a non-unique, nonclustered index in a descending order.
  • You run a query against the table. The query spans multiple partitions and requests an order.
In this scenario, the query returns incorrect results.

Cause

This issue occurs because SQL Server reverses partition ID ranges when a descending index is queried. Therefore, the correct order across the partitions is violated.

Resolution

The issue was first fixed in the following cumulative update of SQL Server. After you apply the fix, you have to enable trace flag 4199 to make the hotfix work.

Cumulative Update 8 for SQL Server 2012 SP1  (http://support.microsoft.com/kb/2917531/ )

Cumulative Update 11 for SQL Server 2012   (http://support.microsoft.com/kb/2908007/ )

Cumulative Update 10 for SQL Server 2008 R2 SP2  (http://support.microsoft.com/kb/2908087/ )

Cumulative Update 14 for SQL Server 2008 SP3  (http://support.microsoft.com/kb/2893410/ )

About cumulative updates for SQL Server

Collapse this imageExpand this image
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

Status

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

Applies to
  • Microsoft SQL Server 2008 Service Pack 3, when used with:
    • Microsoft SQL Server 2008 Developer
    • Microsoft SQL Server 2008 Enterprise
    • Microsoft SQL Server 2008 Standard
  • Microsoft SQL Server 2008 R2 Service Pack 2, when used with:
    • Microsoft SQL Server 2008 R2 Developer
    • Microsoft SQL Server 2008 R2 Enterprise
    • Microsoft SQL Server 2008 R2 Standard
  • Microsoft SQL Server 2012 Service Pack 1, when used with:
    • Microsoft SQL Server 2012 Developer
    • Microsoft SQL Server 2012 Enterprise
    • Microsoft SQL Server 2012 Standard
Keywords: 
kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2892741
Share
Additional support options
Ask The Microsoft Small Business Support Community
Contact Microsoft Small Business Support
Find Microsoft Small Business Support Certified Partner
Find a Microsoft Store For In-Person Small Business Support