I thought SQL Azure was built on top of SQL Server 2012, but the compatibility level when creating a new database is 100 (SQL Server 2008 compatibility level), not 110.
SELECT compatibility_level FROM sys.databases WHERE name = 'Test';
I tried changing it to 110 using two methods that I know of:
ALTER DATABASE Test SET COMPATIBILITY_LEVEL = 110;
The reason this is a problem for me is because SQL 2008 does not support geography forms that cross hemispheres, so if you zoom out on the map to see the world and try to keep the map borders, it will fail. Pretty stupid right?
I thought this would not be a problem in SQL Azure because it was fixed in SQL Server 2012, but when I try to create a shape that intersects the hemisphere, I get the following error:
Microsoft.SqlServer.Types.GLArgumentException: 24205: The specified input does not represent a valid instance of geography because it exceeds one hemisphere. Each instance of geography must fit into one hemisphere. A common cause of this error is that the polygon has an incorrect ring orientation. To create a larger geometry instance, upgrade to SQL Server and change the database compatibility level to at least 110.
So, they tell me that I am changing the compatibility level, since he knows that this has already been fixed, but I canβt figure out how to do this in SQL Azure. Anyone have a suggestion to try? Or let me know if this is simply not possible now?
user1406823
source share