I'm looking to store GPS co-ordinates in an MS SQL Server DB for location matching of users with GPS-enabled mobile phones.
I've read about STDistance on MSDN, but it only appears to exist in SQL Server 2008 (& later) along with the geometry and geography field types.
However, I'll need to support older versions of SQL Server as well (at least 2005).
What's the best way of storing GPS co-ordinates and calculating distances between 2 GPS locations in SQL Server 2005?
