Article ID: 816883 - Last Review: November 2, 2007 - Revision: 10.3 FIX: SQL Server Optimizer May Underestimate the Cardinality of Range Queries BUG #: 364245 (SQL Server 8.0) On This PageSYMPTOMSThe SQL Server optimizer may not correctly estimate the
cardinality of an expression if all the following conditions are true:
Because of this bug, the SQL Server optimizer typically underestimates the number of rows from such a predicate. The SQL Server optimizer may select a plan that is not efficient, such as using an index seek when an index scan is more appropriate, using an incorrect join order, or failing to use a matching indexed view. RESOLUTIONService pack informationTo 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
(http://support.microsoft.com/kb/290211/
)
How to obtain the latest SQL Server 2000 service pack Hotfix informationThe English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.Date Time Version Size File name -------------------------------------------------------------- 27-Mar-2003 02:47 2.4.1.0 11,172,351 Sql2000-kb810185-8.00.0794-enu.exe STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.This problem was first corrected in Microsoft SQL Server 2000 Service Pack 4. MORE INFORMATIONThis fix is only enabled when you use trace flag
9256. For more information about using trace flags, see SQL Server
2000 Books Online.
APPLIES TO
| Article Translations
|
Back to the top
