Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Improper Execution Plan Selection
Message
From
27/04/2001 17:11:04
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00500731
Message ID:
00501068
Views:
24
This is probably the correct behavior. I've not bumped into a lot of situations where the query optimizer selects a bad plan.

Update your index statistics. The query optimizer uses the statistics to determine how useful an index is.

Also, if SQL Server determines that it will be returning more than 12 to 15% of the table, it will perform a table scan.

Can you post the query and DDL? Is this query in a stored procedure? If it is, the rules change.

I'd also suggest that you purchase "Inside SQL Server 2000."

- Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform