I am trying to work out the most efficient query to get points within a radius of a given point. The results do not have to be very accurate so I would favor speed over accuracy.
We have tried using a where clause comparing distance of points using STDistance like this (where @point and v.GeoPoint are geography types):
WHERE v.GeoPoint.STDistance(@point) <= @radius
Also one using STIntersects similar to this:
WHERE @point.STBuffer(@radius).STIntersects(v.GeoPoint) = 1
Are either of these queries preferred or is there another function that I have missed?