However when I run the query, I get the following error in SQL Server:
Msg 6522, Level 16, State 1, Line 2 A .NET Framework error occurred during execution of user-defined routine or aggregate "geography": Microsoft.SqlServer.Types.GLArgumentException: 24205: The specified input does not represent a valid geography instance because it exceeds a single hemisphere. Each geography instance must fit inside a single hemisphere. A common reason for this error is that a polygon has the wrong ring orientation.
Since we aren't crossing any hemisphere's it appears as if the "GetWellKnowText()" function is not using the correct ring orientation. How do I correct this? It seems funny that the function wouldn't produce the correctly formated polygon.
So I took the above original Rectangle and reversed all the points and Geography worked as well as the Geometry!! So why doesn’t the function return the points in the right order?
It seems that using geography is more strict than using geometry, the polygon’s outer ring must be counterclockwise, we’ve made the changes, please get 6.0.108.0 or 6.0.0.108 and have a try.
That may be a problem. I’m currently in the 60 day evaluation period, and the demo link indicates version 6.0.0.0. Has the Eval been updated for these corrections?