How to store longitude & latitude as a geography in sql server 2014?
I'm a sql beginner that knows how to get my users location in longitude and latitude coordinates. My goal is eventually to be able to select all rows from myTable Where distance is less than 2km. However on my way towards this goal there is some things that confuses me so I'll try to list what I'm failing to understand. How can i use the longitude and latitude to store location within a geography column?(because it's supposed to be only one geographic point not two right? not one for longitude and one for latitude?) Now that I've got the geography points, how can i select all the rows within a