<?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: MySQL Stored procedure to Generate-Extract Insert Statement</title>
	<atom:link href="http://kedar.nitty-witty.com/blog/mysql-stored-procedure-to-generate-extract-insert-statement/feed" rel="self" type="application/rss+xml" />
	<link>http://kedar.nitty-witty.com/blog/mysql-stored-procedure-to-generate-extract-insert-statement</link>
	<description>Kedar&#039;s Blog for MySQL and more</description>
	<lastBuildDate>Wed, 16 May 2012 16:33:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/mysql-stored-procedure-to-generate-extract-insert-statement/comment-page-1#comment-3946</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Wed, 16 May 2012 16:09:34 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=888#comment-3946</guid>
		<description>enjoy thanks ;)</description>
		<content:encoded><![CDATA[<p>enjoy thanks <img src='http://kedar.nitty-witty.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thanks</title>
		<link>http://kedar.nitty-witty.com/blog/mysql-stored-procedure-to-generate-extract-insert-statement/comment-page-1#comment-3803</link>
		<dc:creator>thanks</dc:creator>
		<pubDate>Mon, 16 Apr 2012 17:51:38 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=888#comment-3803</guid>
		<description>Thanks a ton dude...</description>
		<content:encoded><![CDATA[<p>Thanks a ton dude&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: R. Willis</title>
		<link>http://kedar.nitty-witty.com/blog/mysql-stored-procedure-to-generate-extract-insert-statement/comment-page-1#comment-3570</link>
		<dc:creator>R. Willis</dc:creator>
		<pubDate>Mon, 23 Jan 2012 18:38:07 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=888#comment-3570</guid>
		<description>I also get the error &quot;Create table &#039;agps&#039; failed!
ERROR 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;)&#039; at line 1
CREATE TABLE `agps` ()&quot; when trying to migrate microsoft access to Mysql on an Ubuntu 10.4 pc. 
I did not write any SQL so it must be some canned SQL script generated by ESF database migration tools kit. which is causing the error.
I think that the user has all the necessary permissions, but it is almost impossible to tell with mysql.
Could it be that the version of mysql running under Ubuntu has a different language to that assumed by ESF?
I am running ESF on a windows pc accessing the access database on the linux pc on a LAN as there is no linux version as far as I know.</description>
		<content:encoded><![CDATA[<p>I also get the error &#8220;Create table &#8216;agps&#8217; failed!<br />
ERROR 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;)&#8217; at line 1<br />
CREATE TABLE `agps` ()&#8221; when trying to migrate microsoft access to Mysql on an Ubuntu 10.4 pc.<br />
I did not write any SQL so it must be some canned SQL script generated by ESF database migration tools kit. which is causing the error.<br />
I think that the user has all the necessary permissions, but it is almost impossible to tell with mysql.<br />
Could it be that the version of mysql running under Ubuntu has a different language to that assumed by ESF?<br />
I am running ESF on a windows pc accessing the access database on the linux pc on a LAN as there is no linux version as far as I know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/mysql-stored-procedure-to-generate-extract-insert-statement/comment-page-1#comment-344</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Mon, 27 Sep 2010 05:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=888#comment-344</guid>
		<description>Hey Mike,
I tried the demo version!
I&#039;ve already tried Kettle (the open source product) and ESF Data Migration toolkit (~11K INR) which worked nicely for me.
+Advance ETL costs (16K INR)!
My observations.</description>
		<content:encoded><![CDATA[<p>Hey Mike,<br />
I tried the demo version!<br />
I&#8217;ve already tried Kettle (the open source product) and ESF Data Migration toolkit (~11K INR) which worked nicely for me.<br />
+Advance ETL costs (16K INR)!<br />
My observations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://kedar.nitty-witty.com/blog/mysql-stored-procedure-to-generate-extract-insert-statement/comment-page-1#comment-343</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sun, 26 Sep 2010 19:27:37 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=888#comment-343</guid>
		<description>Advanced ETL Processor can generate INSERT SQL from any data source including test files

http://www.etl-tools.com/generating-insert-statements.html

Mike</description>
		<content:encoded><![CDATA[<p>Advanced ETL Processor can generate INSERT SQL from any data source including test files</p>
<p><a href="http://www.etl-tools.com/generating-insert-statements.html" rel="nofollow">http://www.etl-tools.com/generating-insert-statements.html</a></p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Amit Mistry</title>
		<link>http://kedar.nitty-witty.com/blog/mysql-stored-procedure-to-generate-extract-insert-statement/comment-page-1#comment-341</link>
		<dc:creator>Amit Mistry</dc:creator>
		<pubDate>Wed, 09 Jun 2010 11:50:22 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=888#comment-341</guid>
		<description>MySQL has a feature for profiling query. By default its off, but you can turn it on per MySQL session by issueing &quot;set profiling=1&quot; on MySQL command prompt.

http://dev.mysql.com/tech-resources/articles/using-new-query-profiler.html

But it has some limitation, first of all, it can be used for debugging while you are in a development mode. Second, it can not be used for query logging purpose.

Major limitation it has is, you can also store 15 queries in MySQL profile and it can be configure upto 100 queries.</description>
		<content:encoded><![CDATA[<p>MySQL has a feature for profiling query. By default its off, but you can turn it on per MySQL session by issueing &#8220;set profiling=1&#8243; on MySQL command prompt.</p>
<p><a href="http://dev.mysql.com/tech-resources/articles/using-new-query-profiler.html" rel="nofollow">http://dev.mysql.com/tech-resources/articles/using-new-query-profiler.html</a></p>
<p>But it has some limitation, first of all, it can be used for debugging while you are in a development mode. Second, it can not be used for query logging purpose.</p>
<p>Major limitation it has is, you can also store 15 queries in MySQL profile and it can be configure upto 100 queries.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kedar</title>
		<link>http://kedar.nitty-witty.com/blog/mysql-stored-procedure-to-generate-extract-insert-statement/comment-page-1#comment-340</link>
		<dc:creator>Kedar</dc:creator>
		<pubDate>Thu, 06 May 2010 05:22:15 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=888#comment-340</guid>
		<description>As you&#039;ve copied the code from above snipped it seems a problem with quotes (&#039; and `). Please download file available at the end of the page and give it a try.

Regarding not storing output in a file, just remove the section &gt;&gt; &quot; INTO OUTFILE &#039;&quot;, in_file ,&quot;&#039;&quot;);&quot; from the query and procedure will output the result on prompt.

Replace &quot;set @Inserts....&quot; line with following:

set @Inserts=concat(&quot;select concat(&#039;insert into &quot;, in_db,&quot;.&quot;,tablename,&quot; values(&#039;,concat_ws(&#039;,&#039;,&quot;,@Sels,&quot;),&#039;);&#039;) from &quot;, in_db,&quot;.&quot;,tablename,&quot; group by &quot;,@Whrs, &quot;;&quot;);</description>
		<content:encoded><![CDATA[<p>As you&#8217;ve copied the code from above snipped it seems a problem with quotes (&#8216; and `). Please download file available at the end of the page and give it a try.</p>
<p>Regarding not storing output in a file, just remove the section >> &#8221; INTO OUTFILE &#8216;&#8221;, in_file ,&#8221;&#8216;&#8221;);&#8221; from the query and procedure will output the result on prompt.</p>
<p>Replace &#8220;set @Inserts&#8230;.&#8221; line with following:</p>
<p>set @Inserts=concat(&#8220;select concat(&#8216;insert into &#8220;, in_db,&#8221;.&#8221;,tablename,&#8221; values(&#8216;,concat_ws(&#8216;,&#8217;,&#8221;,@Sels,&#8221;),&#8217;);&#8217;) from &#8220;, in_db,&#8221;.&#8221;,tablename,&#8221; group by &#8220;,@Whrs, &#8220;;&#8221;);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthik</title>
		<link>http://kedar.nitty-witty.com/blog/mysql-stored-procedure-to-generate-extract-insert-statement/comment-page-1#comment-339</link>
		<dc:creator>karthik</dc:creator>
		<pubDate>Thu, 06 May 2010 03:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://kedar.nitty-witty.com/blog/?p=888#comment-339</guid>
		<description>Appreciate your effort. But i am getting the following error using ur SP :

Script line: 4	You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;\’”\’,ifnull(‘,column_name,’,””)’,&#039;,\’”\’)&#039;)) INTO @Sels f&#039; at line 12


Cannot figure out the problem. And also is there any way to return the Insert statements as return value instead of writing to a text file ? I am new to MySql</description>
		<content:encoded><![CDATA[<p>Appreciate your effort. But i am getting the following error using ur SP :</p>
<p>Script line: 4	You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;\’”\’,ifnull(‘,column_name,’,””)’,&#8217;,\’”\’)&#8217;)) INTO @Sels f&#8217; at line 12</p>
<p>Cannot figure out the problem. And also is there any way to return the Insert statements as return value instead of writing to a text file ? I am new to MySql</p>
]]></content:encoded>
	</item>
</channel>
</rss>

