
Of these landmarks were taken from Google maps and not from Microsoft's Virtual Earth (or Bing Maps).) CREATE TABLE. (Note: The latitude and longitude coordinates To take advantage of SQL Server 2008's new geography data type. Let's say we have a table of famous international geographic landmarks where we store its latitude and longitude coordinates and we want From these spatial data objects, we will be using the Point. MultiLineString, Polygon, MultiPolygon and Geometr圜ollection. The GEOGRAPHY data type supports seven spatial data objects that you can create and work with, namely Point, MultiPoint, LineString, ThisĪrticle will show the different ways of converting the latitude and longitude coordinates of geography locations into a geography POINT.


In SQL Server 2008, particularly the GEOGRAPHY data type, this can now be stored as points in a single column stored as a spatial data object.

With the introduction of spatial data types Prior to SQL Server 2008, geography locations such as bank branches, restaurant locations and household locations,Īre usually stored as latitude and longitude coordinates in two separate columns. Home > SQL Server 2008 > Convert Latitude/Longitude (Lat/Long) to Geography PointĬonvert Latitude/Longitude (Lat/Long) to Geography Point
