Article ID: 279659 - View products that this article applies to.
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)
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:
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.
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 the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/290211/EN-US/ )INF: How to Obtain the Latest SQL Server 2000 Service Pack
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.