Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optimisation as per execution plan
Message
 
 
À
27/10/2011 20:41:54
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Indexation
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01526170
Message ID:
01527505
Vues:
36
>>I have this query
>>
>>
>>....
>>left outer join dbo.accounts a on a.acct_name = t.acct_name
>>			left outer join dbo.transact r WITH (index = sale_no) on r.sale_no = t.sale_no
>>
>>
>>Note the WITH (index = nameOfTheIndex)
>>
>>clause.
>
>Thanks, is this SQL ANSI compliant? Also, does this syntax apply also to a WHERE clause?

It can be used in SQL Server. I'm not sure such hints can be used in other database languages.

BTW, you can investigate Query Hints topic in BOL.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform