问题
I have been searching around for the best source for City, State, Zip, Country to use in an application. I have found the set at GeoNames.org and it seems very comprehensive. However there is not a simple import into SQL Server. I also believe the USPS has something similar.
Does anyone know a good reliable source that is easily imported into SQL Server for this information? Or maybe even some better Googling terms?
回答1:
There is a script to load data from geonames in a blog I wrote a while ago. Hopefully it helps.
SQL Server Zipcode Latitude/Longitude proximity distance search
回答2:
Why can't you just get the CSV files and bulk-load them into your data base. How much simpler do you want?
来源:https://stackoverflow.com/questions/2289056/city-state-zip-country-list-script-for-sql-server-table