I am kind of confused about the way SQL Server 2000 handles the hints
that users supply with their SQL statements.
[color=blue]
>From BOL, it seems that one can specify them with "WITH (...)" clauses[/color]
in SQL statements known as table hints. Sometimes, multiple uses of
this form in a statement is OK. Then there is the OPTION clause for
specifying statement hints. However, the documentation on OPTION
section discourages their use.
Being relatively new to SQL Server and still learning about it, what is
the general practice? Use hints or not? And if so, how (through WITH
or OPTION clauses)?
Cheers!
that users supply with their SQL statements.
[color=blue]
>From BOL, it seems that one can specify them with "WITH (...)" clauses[/color]
in SQL statements known as table hints. Sometimes, multiple uses of
this form in a statement is OK. Then there is the OPTION clause for
specifying statement hints. However, the documentation on OPTION
section discourages their use.
Being relatively new to SQL Server and still learning about it, what is
the general practice? Use hints or not? And if so, how (through WITH
or OPTION clauses)?
Cheers!
Comment