City, State, Zip, Country list/script for sql server table

╄→尐↘猪︶ㄣ 提交于 2019-12-22 17:57:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!