Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select - the inner execution sequence
Message
De
02/09/2003 14:06:41
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
00825026
Message ID:
00825404
Vues:
17
Hi Kamil,

in fact you can control the SQL Query Optimizer very well.

Use
1. order joins with parenthesis
((T1 JOIN T2 ON ... ) LEFT JOIN ... )
2. use query hints : OPTION () clause ( example : OPTION(FORCE ORDER) )
3. use join  hints : () for control join type method
4. use table hints : WITH ( ) for control locks and index used on table
With a strong hints setting you can fixed the query plan.
However, to every SP or new version, the things can change.

Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform