Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 OPTION (FORCE ORDER)

Author  Topic 

mahesh_bote
Constraint Violating Yak Guru

298 Posts

Posted - 2007-05-29 : 09:53:15
Why to use OPTION (FORCE ORDER) after Order By clause? Can anybody tell me in detail?

thanks in advance,

Mahesh

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-05-29 : 09:56:11
FORCE ORDER hint has nothing to do with ORDER BY clause.

As per BOL:

quote:
FORCE ORDER

Specifies that the join order indicated by the query syntax is preserved during query optimization.


Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page
   

- Advertisement -