<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Creating database using geonames dump"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Creating database using geonames dump"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Creating database using geonames dump</title>
				<description><![CDATA[ I am creating GeoNames database using database dump. I have gone thru quite a few post regarding using database dump as well. Our database is SQL SERVER 2005.

I want to confirm the format of Admin1 code,  Admin2 code and feature code used in the dump files so that I can setup primary keys and foriegn keys in my database

<u><b>Admin1 Code:</b></u>
<u>Format is :</u>&lt;CountryCode&gt;.&lt;Admin1Code&gt;
<u>CountryCode</u> - is same as CountryCode field in the Geoname dump file and Iso Field in the CountryInfo.txt file
<u>Admin1Code</u> - this code is unique for a country


<u><b>Admin2 Code:</b></u>
<u>Format:</u>&lt;CountryCode&gt;.&lt;Admin1Code&gt;.&lt;Admin2Code&gt;
<u>CountryCode </u>- is same as CountryCode field in the Geoname table and Iso Field in the CountryInfo.txt file
<u>Admin1Code</u> - this code is unique for a country
<u>Admin2Code</u> - this code is unique for a Admin1Code



Are there any dump files for Admin3Code and Admin4Code? 

]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1643.page#6787</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1643.page#6787</link>
				<pubDate><![CDATA[Tue, 1 Dec 2009 04:54:54]]> GMT</pubDate>
				<author><![CDATA[ mdhaman]]></author>
			</item>
			<item>
				<title>Re:Creating database using geonames dump</title>
				<description><![CDATA[ You don't need any dump files for adm codes. All information is included in the main dump file (including adm3 and adm4 codes).
If you want to use fk's for the admin codes you will first have to delete the orphaned codes. We have preferred to not deleted the orphaned codes as they still contain valuable information, even if it is obsolete and refers to a previous adm division, but as long as the new and correct adm code has not been determined we keep the old one as a reference.

Marc]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/1643.page#6789</guid>
				<link>http://forum.geonames.org/gforum/posts/list/1643.page#6789</link>
				<pubDate><![CDATA[Tue, 1 Dec 2009 08:10:54]]> GMT</pubDate>
				<author><![CDATA[ marc]]></author>
			</item>
	</channel>
</rss>