Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Sql server 2005, geographical location data type
Old 06-04-2008, 01:21 AM Sql server 2005, geographical location data type
itHighway's Avatar
Skilled Talker

Posts: 83
Name: Zeeshan Dar
Location: GUJ
Trades: 0
SQL SERVER 2005:
---------------------------
I have a table containing US zipcodes, longitude, latitude. Using sql server 2005 geographical location data type can I get the zipcodes that are at a particular distance from my given zipcode.
Example:
I want to get zipcodes that are 10 miles from zipcode 10001 (NYC)
__________________
Zeeshan Dar
itHighway -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
itHighway is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-05-2008, 02:34 PM Re: Sql server 2005, geographical location data type
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Well, for starters, geospatial data types were introduced in SQL Server 2008. So if you're using 2005, you'll need to come up with another solution. If you opt for 08, here's some reading that will help you understand how to make use of the goedata.

http://en.wikibooks.org/wiki/Geospat..._in_SQL_Server
http://msdn.microsoft.com/en-gb/libr...(SQL.100).aspx
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Old 06-06-2008, 12:50 PM Re: Sql server 2005, geographical location data type
Average Talker

Posts: 20
Trades: 0
can you use the google maps api? thats what i use to get address from postcodes
__________________

Please login or register to view this content. Registration is FREE
jonnyshaw is offline
Reply With Quote
View Public Profile
 
Old 06-06-2008, 02:01 PM Re: Sql server 2005, geographical location data type
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
He's asking how to know if 94831 and 94209 are within 10 miles of each other or not. I don't know if the Google API does this? SQL Server does, inherently, and a great deal more. In database semantics, which means you can ask it for a list of all places it knows about within a radius, and any number of other queries. But only starting with SQL Server 2008, so if our friend has 2005, some other API will be needed.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Sql server 2005, geographical location data type
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21506 seconds with 12 queries