Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Improper Execution Plan Selection
Message
De
27/04/2001 17:11:04
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00500731
Message ID:
00501068
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform