I have locations in longitude and latitude coordinates. My goal is eventually to be able to select all rows from myTable Where distance is less than 2km.
Ho
You can convert lat and long to a point and save it in table.
Declare @geo Geography, @Lat varchar(10), @long varchar(10)
SET @Lat = '34.738925' SET @Long = '-92.39764'
SET @geo= geography::Point(@LAT, @LONG, 4326)