Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How can I use STDistance with all table values?

Author  Topic 

kunaaldesai
Starting Member

36 Posts

Posted - 2009-08-16 : 16:35:17
Hey guys,
I am using Geocoding functionality with some geographical coding in sql server 2008. mY problem is that instead of applying "Geocode" function with two geographical points, I want to find distance between a single point and all the points in my other table.

I mean If somebody enters some geographical value then I want to find out distance of that point with each and every point in my table.

Secondly points in my table are stored as (Longitude Latitude) string NOT as a geographical object.

Is there any way that I can make it happen?
   

- Advertisement -