Article ID: 933697 - Last Review: March 13, 2007 - Revision: 1.2 FIX: A SELECT query unexpectedly returns an incorrect number of rows in SQL Server 2005 Mobile Edition and in SQL Server 2005 Compact EditionOn This PageSYMPTOMSWhen you run a SELECT query in Microsoft SQL Server 2005 Mobile Edition and in Microsoft SQL Server 2005 Compact Edition, the query unexpectedly returns an incorrect number of rows. This problem occurs if the following conditions are true:
CAUSEThis problem occurs because the query optimizer does not discard the previous plan completely. The query optimizer considers multiple query plans before the query optimizer decides on the best plan to execute a query. In some cases, the query optimizer can find a plan that uses an index to evaluate the condition. However, the query optimizer may later find a better plan. In this case, the query optimizer discards the previous plan to use the better plan. RESOLUTIONTo resolve this problem, use one of the following methods:
STATUS Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONSteps to reproduce the problem
| Article Translations
|
Back to the top
