G12Consult
Programmer
I have a field in a table with the geography data type.
I can write to the field using a lat & long reference which gives me a value of: 0xE6100000010CF4F8BD5D7F063CC059349D9D0C2A6340
When I try to extract the lat out of that field using
, I receive the error:
I thought this should work?
I can write to the field using a lat & long reference which gives me a value of: 0xE6100000010CF4F8BD5D7F063CC059349D9D0C2A6340
When I try to extract the lat out of that field using
Code:
SELECT GEOLOCATION.LONG
Code:
Could not find property or field 'long' for type 'Microsoft.SqlServer.Types.SqlGeography' in assembly 'Microsoft.SqlServer.Types'.
I thought this should work?