DetailPage-MSS-KB

Microsoft small business knowledge base

Article ID: 2887465 - Last Review: November 18, 2013 - Revision: 1.0

On This Page

Symptoms

Assume that you have a query that use some ranking functions, such as the ROW_NUMBER() function. When you run the query against a table in Microsoft SQL Server 2008, you may receive an incorrect result when a parallel execution plan is used for the query. 

Note This issue has been fixed in Microsoft SQL Server 2008 R2 Service Pack 1 (SP1) and later versions.

Resolution

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

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.

References

For more information about the hotfix for the similar issues, click the following article numbers to view the articles in the Microsoft Knowledge Base:
970198  (http://support.microsoft.com/kb/970198/ ) FIX: You receive an incorrect result when you run a query that uses the row_number function in SQL Server 2008 or in SQL Server 2008 R2
2433265  (http://support.microsoft.com/kb/2433265/ ) FIX: You may receive an incorrect result when you run a query that uses the ROW_NUMBER function together with a left outer join in SQL Server 2008 and SQL Server 2008 R2
2589980  (http://support.microsoft.com/kb/2589980/ ) FIX: Incorrect results or constraint violation when you run a SELECT or DML statement that uses the row_number function and a parallel execution plan in SQL Server 2008


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 Express
Keywords: 
kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2887465
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