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'.
The One about Bingeworthy Shows
4 years ago
No comments:
Post a Comment
Be nice... it's the only internet we have.