FIX: SQL Server 2000 Takes Much Longer to Compile the Query Against Local Partitioned View Than SQL Server 7.0

This article was previously published under Q279659
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 236588 (SHILOH_BUGS)
SYMPTOMS
SQL Server 2000 takes much more time to compile a query against a local partitioned view than SQL Server 7.0, when the following conditions are met:
  • The number of tables involved is over 32.
  • There is no predicate on the union columns.
CAUSE
SQL Server 2000 introduces statistics based on cardinality estimation for unions. The additional time consumed is to combine all the histograms for the input columns. But under the special conditions described above, we don't need to combine the histograms because there is no predicate on the union columns.
RESOLUTION
To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack
STATUS
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.
Properties

Article ID: 279659 - Last Review: 01/16/2015 21:07:32 - Revision: 3.2

  • Microsoft SQL Server 2000 Standard Edition
  • kbnosurvey kbarchive kbbug kbfix kbsqlserv2000sp1fix KB279659
Feedback