I have a SQL Server database ported to SQL Server 2008. I want to use spatial functions. However, my data uses more traditional data types. For example, I have the following two tables:
Location
--------
ID char(36)
Address nvarchar (256)
City nvarchar (256)
State char (2)
PostalCode char (10)
Order
-----
LocationID char(36)
Product nvarchar(30)
Quantity int
TotalPrice decimal
How can I use the spatial features of SQL Server 2008 to receive orders within a 10 mile radius of a particular postal code?
Thank!
source
share