Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimisation as per execution plan
Message
 
 
To
27/10/2011 20:41:54
General information
Forum:
Microsoft SQL Server
Category:
Indexing
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01526170
Message ID:
01527505
Views:
37
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform