Try this on a SQL 7 or 2000 box
DECLARE @Fred AS TABLE (ID INT)
and what you will get is a syntax error. Another oddity that works fine once you move to SQL 2005 but that little AS in the declaration is a syntax error anywhere else. Seems most people do not run into this little gem because the AS is not required, and why would you type it if its not needed? That would be like using a LET assignment keyword :(
The One about Bingeworthy Shows
4 years ago
No comments:
Post a Comment
Be nice... it's the only internet we have.