Hello,
I have a SQL Server database that I have migrated to SQL Server 2008. I want to take advantage of the spatial features. However my data is using more traditional data types. For instance, 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 get the orders within a 10 mile radius of a particular postal code?
Thank you!