Microsoft KB Archive/276329

= FIX: Complex Distinct or Group By Query Can Return Unexpected Results with Parallel Execution Plan =

Article ID: 276329

Article Last Modified on 11/5/2003

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition

-



This article was previously published under Q276329



BUG #: 236325 (SHILOH_BUGS)



SYMPTOMS
If all of the following conditions are true about a complex query, it is possible to receive unexpected results:
 * The query contains a DISTINCT clause or a GROUP BY clause that is implemented by using distinct operations.


 * The query contains multiple subqueries.


 * The execution plan contains parallel execution steps as well as a serial execution nested loops join.



RESOLUTION
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

Hotfix
NOTE: The following hotfix was created prior to Microsoft SQL Server 2000 Service Pack 1.

The English version of this fix should have the following file attributes or later:   File name   Platform

s80211i.exe x86 NOTE: Due to file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files.



WORKAROUND
Prevent either the query or SQL Server from using the parallel execution plans by using either the MAXDOP 1 hint on the query or by changing the max degree of parallelism sp_configure setting to the value 1.



STATUS
Microsoft has confirmed that this is a problem in Microsoft SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.

Additional query words: correlated subquery

Keywords: kbbug kbfix kbqfe kbsqlserv2000sp1fix KB276329

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.