<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Using Macro Scheduler&#8217;s Database Functions</title>
	<atom:link href="http://www.mjtnet.com/blog/2008/04/15/using-macro-schedulers-database-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mjtnet.com/blog/2008/04/15/using-macro-schedulers-database-functions/</link>
	<description>Mostly tips, tutorials, articles and news about Macro Scheduler &#38; Windows Automation</description>
	<lastBuildDate>Sun, 31 Jan 2010 18:53:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Marcus Tettmar</title>
		<link>http://www.mjtnet.com/blog/2008/04/15/using-macro-schedulers-database-functions/comment-page-1/#comment-2478</link>
		<dc:creator>Marcus Tettmar</dc:creator>
		<pubDate>Thu, 05 Nov 2009 15:43:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2008/04/15/using-macro-schedulers-database-functions/#comment-2478</guid>
		<description>That would be done with the connection string and would be database specific.  For MySQL, &lt;a href=&quot;http://www.connectionstrings.com/mysql&quot; rel=&quot;nofollow&quot;&gt;according to this site&lt;/a&gt;, you would add &quot;CharSet=UTF8&quot; to the connection string.  It may be different (or unnecessary) for other databases.  Refer to the documentation for the database in question.</description>
		<content:encoded><![CDATA[<p>That would be done with the connection string and would be database specific.  For MySQL, <a href="http://www.connectionstrings.com/mysql" rel="nofollow">according to this site</a>, you would add &#8220;CharSet=UTF8&#8243; to the connection string.  It may be different (or unnecessary) for other databases.  Refer to the documentation for the database in question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emanuel</title>
		<link>http://www.mjtnet.com/blog/2008/04/15/using-macro-schedulers-database-functions/comment-page-1/#comment-2477</link>
		<dc:creator>Emanuel</dc:creator>
		<pubDate>Thu, 05 Nov 2009 14:30:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2008/04/15/using-macro-schedulers-database-functions/#comment-2477</guid>
		<description>Is there an possibility to choose the charset? Like in PHP (to mysql) 
mysql_set_charset(&#039;utf8&#039;,$link);

Would like to store swedish characters å,ä,ö,Å,Ä,Ö

Regards Emanuel</description>
		<content:encoded><![CDATA[<p>Is there an possibility to choose the charset? Like in PHP (to mysql)<br />
mysql_set_charset(&#8217;utf8&#8242;,$link);</p>
<p>Would like to store swedish characters å,ä,ö,Å,Ä,Ö</p>
<p>Regards Emanuel</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raphael</title>
		<link>http://www.mjtnet.com/blog/2008/04/15/using-macro-schedulers-database-functions/comment-page-1/#comment-2458</link>
		<dc:creator>raphael</dc:creator>
		<pubDate>Wed, 14 Oct 2009 11:42:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2008/04/15/using-macro-schedulers-database-functions/#comment-2458</guid>
		<description>Per the mysql reference (http://dev.mysql.com/doc/refman/5.0/en/string-syntax.html), your second example works.  Thanks.</description>
		<content:encoded><![CDATA[<p>Per the mysql reference (<a href="http://dev.mysql.com/doc/refman/5.0/en/string-syntax.html)" rel="nofollow">http://dev.mysql.com/doc/refman/5.0/en/string-syntax.html)</a>, your second example works.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcus Tettmar</title>
		<link>http://www.mjtnet.com/blog/2008/04/15/using-macro-schedulers-database-functions/comment-page-1/#comment-2455</link>
		<dc:creator>Marcus Tettmar</dc:creator>
		<pubDate>Mon, 12 Oct 2009 08:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2008/04/15/using-macro-schedulers-database-functions/#comment-2455</guid>
		<description>This may depend on the database, but if you&#039;re using single quotes around the item then I don&#039;t think you need to escape the double quote.  If you&#039;re using double quotes around the item then you just use two double quotes where you need to insert a double quote.  I.e.:

Let&gt;SQL=INSERT INTO sometable VALUES (10, &#039;&lt;strong&gt;&quot;&lt;/strong&gt;&#039; );

Or:

Let&gt;SQL=INSERT INTO sometable VALUES (10, &quot;&lt;strong&gt;&quot;&quot;&lt;/strong&gt;&quot; );

However, the backslash thing is probably database specific so it may depend on your database and what kind of connection string you are using.  As far as I am aware ADO itself doesn&#039;t need the double quote escaped unless you&#039;re using the double quote as the string delimiter in which case you just add an extra double quote as above (just like in VBScript).</description>
		<content:encoded><![CDATA[<p>This may depend on the database, but if you&#8217;re using single quotes around the item then I don&#8217;t think you need to escape the double quote.  If you&#8217;re using double quotes around the item then you just use two double quotes where you need to insert a double quote.  I.e.:</p>
<p>Let>SQL=INSERT INTO sometable VALUES (10, &#8216;<strong>&#8220;</strong>&#8216; );</p>
<p>Or:</p>
<p>Let>SQL=INSERT INTO sometable VALUES (10, &#8220;<strong>&#8220;&#8221;</strong>&#8221; );</p>
<p>However, the backslash thing is probably database specific so it may depend on your database and what kind of connection string you are using.  As far as I am aware ADO itself doesn&#8217;t need the double quote escaped unless you&#8217;re using the double quote as the string delimiter in which case you just add an extra double quote as above (just like in VBScript).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raphael</title>
		<link>http://www.mjtnet.com/blog/2008/04/15/using-macro-schedulers-database-functions/comment-page-1/#comment-2454</link>
		<dc:creator>raphael</dc:creator>
		<pubDate>Sun, 11 Oct 2009 00:40:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.mjtnet.com/blog/2008/04/15/using-macro-schedulers-database-functions/#comment-2454</guid>
		<description>Not a comment, but apropos: I&#039;m trying to use DBExec to insert a string containing a double quote into a mysql mediumtext field via ODBC.  Normally, you&#039;d do this by simply escaping the double quote with a backslash in the insert statement.  For example:

Let&gt;SQL=INSERT INTO sometable VALUES (10, &#039;\&quot;&#039; );
DBExec&gt;dbH,SQL,result


Where dbH is a working db connection.  I get a zero result when I run this.  How are you processing escape characters?  What facilities exist to dive deeper into the error?  Nothing&#039;s coming through in the mysql error and query logs.</description>
		<content:encoded><![CDATA[<p>Not a comment, but apropos: I&#8217;m trying to use DBExec to insert a string containing a double quote into a mysql mediumtext field via ODBC.  Normally, you&#8217;d do this by simply escaping the double quote with a backslash in the insert statement.  For example:</p>
<p>Let&gt;SQL=INSERT INTO sometable VALUES (10, &#8216;\&#8221;&#8216; );<br />
DBExec&gt;dbH,SQL,result</p>
<p>Where dbH is a working db connection.  I get a zero result when I run this.  How are you processing escape characters?  What facilities exist to dive deeper into the error?  Nothing&#8217;s coming through in the mysql error and query logs.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
