Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2009

    Unanswered: How can I use STDistance with all tablw values?

    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?

  2. #2
    Join Date
    Nov 2004
    on the wrong server
    Provided Answers: 6
    Personally I would use Google Maps or Bing Maps API.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts