FIX: Aggregations in Parallel Query May Generate Incorrect Results

Article translations Article translations
Article ID: 277738 - View products that this article applies to.
This article was previously published under Q277738
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 58334 (SQLBUG_70)
Expand all | Collapse all

Symptoms

A query with aggregations may return incorrect results when a parallel query plan is chosen to do the aggregations. The following example shows part of a simplified parallel query plan chosen to do aggregations:
|--Stream Aggregate(GROUP BY:(...) ...)
     |--Parallelism(Gather Streams)
          |--Stream Aggregate(GROUP BY:(...) ...)
               |--Bookmark Lookup(BOOKMARK:([Bmk1000]), OBJECT:(...) ...)
                    |--Parallelism(Distribute Streams)
				

Workaround

You can work around this problem in the following ways:
  • Disable parallel plan generation globally for the entire server by setting the max degree of parallelism option to 1 through the sp_configure system stored procedure.

    NOTE: To disable parallel plan generation through sp_configure, you must enable the show advanced options configuration setting:
    sp_configure 'show advanced options', 1
    reconfigure with override
    go
    sp_configure 'max degree of parallelism', 1
    reconfigure with override
    go
    						
    -or-
  • Disable the creation of a parallel plan by using the OPTION (MAXDOP 1) query hint for the statement that is experiencing the problem.

Status

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
274799 INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.

Properties

Article ID: 277738 - Last Review: November 2, 2013 - Revision: 3.0
Applies to
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix KB277738

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