DECLARE @foo int
instead of DECLARE @foo INT
, in order to match what is in sys.types
. On no system (binary database or binary instance) can I get that to fail, but I'm certain there was a case where it can (other than the obvious SELECT FROM sys.types WHERE name = N'INT'
).