<?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>Mertech Flex2SQL Tech Blog &#187; Code Examples</title>
	<atom:link href="http://blog.flex2sql.com/index.php/category/code-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flex2sql.com</link>
	<description>Tech Tips, articles and resources related to Mertech's Flex2SQL product</description>
	<lastBuildDate>Wed, 26 Oct 2011 15:23:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Multiple embedded SQL statements</title>
		<link>http://blog.flex2sql.com/index.php/2009/06/multiple-embedded-sql-statements/</link>
		<comments>http://blog.flex2sql.com/index.php/2009/06/multiple-embedded-sql-statements/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 22:31:30 +0000</pubDate>
		<dc:creator>gandalf</dc:creator>
				<category><![CDATA[Code Examples]]></category>
		<category><![CDATA[DB2]]></category>
		<category><![CDATA[DBMS]]></category>
		<category><![CDATA[DataFlex]]></category>
		<category><![CDATA[Microsoft SQL Server]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Embedded SQL]]></category>

		<guid isPermaLink="false">http://blog.flex2sql.com/?p=419</guid>
		<description><![CDATA[While complex embedded SQL statements will let you do a lot of work in one statement, it is sometimes necessary to nest SQL statements to get the job done.

Using cursor handling lets you easily nest multiple embedded SQL statements.]]></description>
		<wfw:commentRss>http://blog.flex2sql.com/index.php/2009/06/multiple-embedded-sql-statements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Command: SET_SESSION_PARAMETER</title>
		<link>http://blog.flex2sql.com/index.php/2009/02/new-command-set_session_parameter/</link>
		<comments>http://blog.flex2sql.com/index.php/2009/02/new-command-set_session_parameter/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 18:18:28 +0000</pubDate>
		<dc:creator>Igor Guerrero</dc:creator>
				<category><![CDATA[Code Examples]]></category>
		<category><![CDATA[Sessions]]></category>

		<guid isPermaLink="false">http://blog.mertechdata.com/?p=26</guid>
		<description><![CDATA[SET_SESSION_PARAMETER OEM_TRANSLATION_STATE  allows users to programmatically enable or disable OEM to ANSI translation. Once enabled, this affects all data files used by the application. This is equivalent to adding &#8220;TRANSLATE_OEM_TO_ANSI 1&#8243; in the INT file.  SET_SESSION_PARAMETER OEM_TRANSLATION_STATE can be called at any time.
This command is only available for Flex2SQL for SQL Server. Please remember to update your Mertech.inc file before using this [...]]]></description>
		<wfw:commentRss>http://blog.flex2sql.com/index.php/2009/02/new-command-set_session_parameter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Write Your Own Migration Routines Using the CONVERT_DAT_FILE Macro</title>
		<link>http://blog.flex2sql.com/index.php/2009/02/write-your-own-migration-routines-using-the-convert_dat_file-macro/</link>
		<comments>http://blog.flex2sql.com/index.php/2009/02/write-your-own-migration-routines-using-the-convert_dat_file-macro/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 18:16:59 +0000</pubDate>
		<dc:creator>Igor Guerrero</dc:creator>
				<category><![CDATA[Code Examples]]></category>
		<category><![CDATA[Migration]]></category>

		<guid isPermaLink="false">http://blog.mertechdata.com/?p=28</guid>
		<description><![CDATA[Mertech provides a macro, CONVERT_DAT_FILE that can be called from a DataFlex program using the Mertech.inc file. This macro will migrate a DataFlex file to the target backend, creating table and index structures and copying data using the default settings of GUI database migration tool.
Using the CONVERT_DAT_FILE, you can write your own custom migration routines [...]]]></description>
		<wfw:commentRss>http://blog.flex2sql.com/index.php/2009/02/write-your-own-migration-routines-using-the-convert_dat_file-macro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Tables Directly</title>
		<link>http://blog.flex2sql.com/index.php/2008/02/open-tables-directly/</link>
		<comments>http://blog.flex2sql.com/index.php/2008/02/open-tables-directly/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 15:24:45 +0000</pubDate>
		<dc:creator>Igor Guerrero</dc:creator>
				<category><![CDATA[Code Examples]]></category>
		<category><![CDATA[DBMS]]></category>
		<category><![CDATA[Connection]]></category>

		<guid isPermaLink="false">http://blog.flex2sql.com/?p=311</guid>
		<description><![CDATA[Using this method you don&#8217;t need to have a INT file but the FD is still needed.

It is a Open as method.
Syntax: 
Open "&#60;DriverName&#62;:\\&#60;ServerName&#62;\&#60;DataBaseName&#62;*&#60;Owner&#62;*&#60;TableName&#62;" as &#60;TableName&#62;
Examples
Flex2SQL for Oracle
Open "sql_drv:\\(local)\tempdb*dbo*##customer" as customer
Flex2SQL for MySQL
Open "MDSMYSQL:\\localhost\framework*customer" as customer
]]></description>
		<wfw:commentRss>http://blog.flex2sql.com/index.php/2008/02/open-tables-directly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using ACTIVATE TIME STAMP</title>
		<link>http://blog.flex2sql.com/index.php/2008/02/using-activate-time-stamp/</link>
		<comments>http://blog.flex2sql.com/index.php/2008/02/using-activate-time-stamp/#comments</comments>
		<pubDate>Wed, 27 Feb 2008 15:14:49 +0000</pubDate>
		<dc:creator>Igor Guerrero</dc:creator>
				<category><![CDATA[Code Examples]]></category>
		<category><![CDATA[Performance Tips]]></category>

		<guid isPermaLink="false">http://blog.flex2sql.com/?p=309</guid>
		<description><![CDATA[You must change the FD (field definition) files and insert the macro command.

Example using ORDERHEA file
Changing FD File:
You must change the date field definition to a string field definition: FD to FS
#REPLACE FILE55 ORDERHEA
#REPLACE ORDERHEA.RECNUM &#124;FN55,0
#REPLACE ORDERHEA.ORDER_NUMBER &#124;FN55,1
#REPLACE ORDERHEA.CUSTOMER_NUMBER &#124;FN55,2
#REPLACE ORDERHEA.ORDER_DATE &#124;FS55,3 &#60;---- LOOK HERE
#REPLACE ORDERHEA.VIA &#124;FS55,4
#REPLACE ORDERHEA.SLSMN &#124;FS55,5
#REPLACE ORDERHEA.TOTAL &#124;FN55,6
#REPLACE ORDERHEA.LAST_DETAIL_NUM &#124;FN55,7
In your code, [...]]]></description>
		<wfw:commentRss>http://blog.flex2sql.com/index.php/2008/02/using-activate-time-stamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

