BUG: Query Optimizer May Select an Inefficient Query Plan for a Query Against a Partitioned View (308643)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q308643
BUG #: 355952 (SHILOH_BUGS)
SYMPTOMS
If the WHERE clause of a query that you run against a partitioned view uses the BETWEEN operator and the values the BETWEEN operator uses are datetime values represented by strings, the query optimizer must search all of the tables instead of only those that cover the search condition on the partitioning column.
WORKAROUND
To work around this problem, use the CAST function to resolve the datetime values represented by stings to datetime values.
STATUS
Microsoft has confirmed this to be a problem in SQL Server 2000.
Modification Type: | Major | Last Reviewed: | 10/3/2003 |
---|
Keywords: | kbbug kbpending KB308643 |
---|
|