Tag Info

New answers tagged


Following is a simple and quick way to pass a SqlGeography point straight to sql parameter (assuming latitude and longitude are of type double). As explained above, you need to add using Microsoft.SqlServer.Types; SqlGeography geoLocationIn = null; if (latitude != 0 && longitude != 0 ) geoLocationIn = ...

Top 50 recent answers are included