free country, city database for sql server

StoneHeart picture StoneHeart · Mar 7, 2009 · Viewed 40.6k times · Source

have anyone used this before, i need free country, city, IP database for sqlserver

Answer

Nathan Voxland picture Nathan Voxland · Mar 7, 2009

I have used http://www.maxmind.com/app/geolitecity . It is a less exact version of their paid database. The free database claims to be "over 99.5% on a country level and 79% on a city level for the US within a 25 mile radius". You can see their accuracy detailed at http://www.maxmind.com/app/geolite_city_accuracy.

The data is presented as a CSV file containing the starting IP block, ending IP block, and the location. It is easy enough to load into sqlserver.

APIs in C, C#, PHP, Java, Perl and the free version, GeoLite, has an IPv6 version in addition to the downloadable CSV Format.