So I have a table with a bunch of different addresses in it. I need a proc that will select the addresses in that table that are within a specified distance in miles from th
you can just use the function directly in the SP... I was thinking:
CREATE PROCEDURE [FindPlaces](@lat float, @long float, @min_dist float)
AS
select messageId from yourtable
where dbo.F_GREAT_CIRCLE_DISTANCE(@lat, @long, lat, long)