As you can see, my geography "POINT" does not contain all the bytes from lat and long. It is rounding my lat and long. I have defined GeoText as nvarch(max). This needs to be precise.
Here is my code:
select [GeoLocation].STAsText() as GeoText, [lat], [long]
FROM [Temp].[dbo].[table1]
order by [GeoLocation].STAsText();
My results:
GeoText lat long
POINT (-106.734 35.0806) 35.080571 -106.7339
POINT (-106.734 35.0806) 35.080571 -106.7339
POINT (-106.734 35.0806) 35.080571 -106.7339
POINT (-106.779 32.3107) 32.31071 -106.77931
POINT (-106.779 32.3107) 32.31071 -106.77931
POINT (-107.134 38.4738) 38.47382 -107.1337
POINT (-107.659 37.8162) 37.816161 -107.65926
POINT (-107.659 37.8162) 37.816161 -107.65926