During the purposeful misuse of a geography data type:
DECLARE @gxxx geography;
SET @gxxx = geometry::STGeomFromText('POLYGON((-118.934303 40.883523, -72.279144 42.769298, -73.991066 40.739213, -105.828393 28.568069, -118.934303 40.883523))',0);
SELECT @gxxx.STArea();
I get this error:
"Msg 206, Level 16, State 2, Line 2
Operand type clash: sys.geography is incompatible with sys.geometry"
So I was wondering, even looked up the object in help:
SELECT * FROM sys.geometry
Or:
SELECT * FROM sys.geography
Should return something, no?
There's no such thing as sys.geography or sys.geometry ... so how is this an error message?
(Yes, I CAN see that my T-SQL disdirection is evil .. hence the title content)