A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
Well, Thanks.
The solution is .. The code above will fail when the Instance is case sensitive.
It runs OK when the instance is case insensitive.