Forum Discussion
Mister_Gregory
Jan 02, 2024Copper Contributor
Table Hint Position in From Clause
The documentation (https://learn.microsoft.com/en-us/sql/t-sql/queries/from-transact-sql?view=sql-server-ver16) for the FROM clause syntax shows the table hints after the table alias. I have recently...
- Jan 03, 2024
No error is thrown.Mister_Gregory that's old syntax from Sybase time; that syntax is deprecated and one should avoid them.
Also you should always use the WITH keyword in combination with table/query hints, see
SQL Server, Deprecated Features object - SQL Server | Microsoft Learn
=> Table hint without WITH
olafhelper
Jan 03, 2024Bronze Contributor
No error is thrown.
Mister_Gregory that's old syntax from Sybase time; that syntax is deprecated and one should avoid them.
Also you should always use the WITH keyword in combination with table/query hints, see
SQL Server, Deprecated Features object - SQL Server | Microsoft Learn
=> Table hint without WITH
Mister_Gregory
Jan 03, 2024Copper Contributor
olafhelper - Thank you very much!