In SQL 2005 this is OK
SELECT 1
FROM sysobjects (nolock) o
JOIN syscolumns (nolock) c ON o.id = c.id
But we build in SQL 2000 and it must be like this
SELECT 1
FROM sysobjects o (nolock)
JOIN syscolumns c (nolock) ON o.id = c.id
So unless you alias the table before the hint, you will get a syntax error in some cases.
Incorrect syntax near 'o'.
20071112
Subscribe to:
Post Comments (Atom)
License & copyright
StinkySQL weblog and any related pages, including the weblog's archives are licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License.
No comments:
Post a Comment
Be nice... it's the only internet we have.