<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Log Base Two &#187; dataflex</title>
	<atom:link href="http://www.logbasetwo.com/tag/dataflex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.logbasetwo.com</link>
	<description>San Diego Based IT Consultants</description>
	<lastBuildDate>Tue, 20 Oct 2009 15:55:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>MS-DOS Dataflex to SQL</title>
		<link>http://www.logbasetwo.com/ms-dos-dataflex-to-sql/</link>
		<comments>http://www.logbasetwo.com/ms-dos-dataflex-to-sql/#comments</comments>
		<pubDate>Thu, 24 Jul 2008 19:11:06 +0000</pubDate>
		<dc:creator>Jason Pope</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[data migration]]></category>
		<category><![CDATA[dataflex]]></category>
		<category><![CDATA[dos]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://logbasetwo.com/?p=23</guid>
		<description><![CDATA[For a job, I had to migrate an old MS DOS based Dataflex database to PostgresSQL. After a few months, I found a way to get the table structures and the data out of the files. Once I had the data, I wrote a few scripts in Ruby. One of them converts the Dataflex file [...]]]></description>
			<content:encoded><![CDATA[<p>For a job, I had to migrate an old MS DOS based Dataflex database to PostgresSQL. After a few months, I found a way to get the table structures and the data out of the files. Once I had the data, I wrote a few scripts in Ruby. One of them converts the Dataflex file layout to multiple SQL create table statements. Another one, converts the data extracted from the database to insert statements.  They work very well and I have used them about 4 times for conversions and have gotten the process down to just a weekend, therefore, minimizing down time for clients.</p>
<p>If you are planning on attempting this task yourself here are some valuable  tips:</p>
<ol>
<li>Do not export or record OVERLAPs. They are in essence the way dataflex recognizes multiple column primary/foreign keys.</li>
<li>Export your data to Line Delimited Format. Not CSV or Tab separated.</li>
<li>Don&#8217;t edit columns or tables until all the data is migrated.</li>
</ol>
<p>I might edit this post later to give some examples.</p>
<p>If you would like to contact me, please click the contact link to leave me a message.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logbasetwo.com/ms-dos-dataflex-to-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

