<?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: Moving data from Sql Server to MySQL</title>
	<atom:link href="http://www.haidongji.com/2009/02/23/moving-data-from-sql-server-to-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.haidongji.com/2009/02/23/moving-data-from-sql-server-to-mysql/</link>
	<description>季庄新闻--Haidong Ji's Blog</description>
	<lastBuildDate>Sat, 13 Mar 2010 04:16:13 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ипотпал</title>
		<link>http://www.haidongji.com/2009/02/23/moving-data-from-sql-server-to-mysql/comment-page-1/#comment-17803</link>
		<dc:creator>ипотпал</dc:creator>
		<pubDate>Sun, 15 Nov 2009 19:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=564#comment-17803</guid>
		<description>Thanks for the great piece of code. You saved me so much time</description>
		<content:encoded><![CDATA[<p>Thanks for the great piece of code. You saved me so much time</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GoodKid &#187; aa</title>
		<link>http://www.haidongji.com/2009/02/23/moving-data-from-sql-server-to-mysql/comment-page-1/#comment-17795</link>
		<dc:creator>GoodKid &#187; aa</dc:creator>
		<pubDate>Tue, 03 Nov 2009 01:00:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=564#comment-17795</guid>
		<description>[...] Moving data from Sql Server to MySQL [...]</description>
		<content:encoded><![CDATA[<p>[...] Moving data from Sql Server to MySQL [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ipotpal</title>
		<link>http://www.haidongji.com/2009/02/23/moving-data-from-sql-server-to-mysql/comment-page-1/#comment-17791</link>
		<dc:creator>ipotpal</dc:creator>
		<pubDate>Wed, 28 Oct 2009 19:11:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=564#comment-17791</guid>
		<description>I try to move my database, this is easy</description>
		<content:encoded><![CDATA[<p>I try to move my database, this is easy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anjali Sharma</title>
		<link>http://www.haidongji.com/2009/02/23/moving-data-from-sql-server-to-mysql/comment-page-1/#comment-17776</link>
		<dc:creator>Anjali Sharma</dc:creator>
		<pubDate>Tue, 06 Oct 2009 08:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=564#comment-17776</guid>
		<description>Hi Haidong Ji,

I have read your post.
I have one requirement to transfer or post the data from Sql table xxx to mysql yyyy with different table structures(i.e no of columns may vary,columns names may vary etc).
Here for example sql table consists of 4 columns by names 1,2,3,4 and mysql table yyyy consists of 3 columns 5,6,7.
here i should map col 1 of sql table xxx  to col 5 of mysql table yyy.In the same way we should map col 2 to col 6 and col 4 to col 7.
how can i proceed in this regard considering autoincrement,Primary key functionalities?
Please reply me asap.

Regartds
Anjali</description>
		<content:encoded><![CDATA[<p>Hi Haidong Ji,</p>
<p>I have read your post.<br />
I have one requirement to transfer or post the data from Sql table xxx to mysql yyyy with different table structures(i.e no of columns may vary,columns names may vary etc).<br />
Here for example sql table consists of 4 columns by names 1,2,3,4 and mysql table yyyy consists of 3 columns 5,6,7.<br />
here i should map col 1 of sql table xxx  to col 5 of mysql table yyy.In the same way we should map col 2 to col 6 and col 4 to col 7.<br />
how can i proceed in this regard considering autoincrement,Primary key functionalities?<br />
Please reply me asap.</p>
<p>Regartds<br />
Anjali</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishnu Kumar</title>
		<link>http://www.haidongji.com/2009/02/23/moving-data-from-sql-server-to-mysql/comment-page-1/#comment-17754</link>
		<dc:creator>Vishnu Kumar</dc:creator>
		<pubDate>Fri, 10 Jul 2009 11:17:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=564#comment-17754</guid>
		<description>Hi
But how do i transfer the table data from MSSQL to MySQL if not manually
thanks
Vishnu</description>
		<content:encoded><![CDATA[<p>Hi<br />
But how do i transfer the table data from MSSQL to MySQL if not manually<br />
thanks<br />
Vishnu</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vishnu Kumar</title>
		<link>http://www.haidongji.com/2009/02/23/moving-data-from-sql-server-to-mysql/comment-page-1/#comment-17753</link>
		<dc:creator>Vishnu Kumar</dc:creator>
		<pubDate>Fri, 10 Jul 2009 09:55:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=564#comment-17753</guid>
		<description>Hi Haidong Ji,
That was a beautiful script.
It worked perfectly with me on SQL Express 2005

Also, i would like to add that one can copy all the bcp commands and paste it notepad.
Then he can save that as a .bat file.

Then goto CMD and execute the batch file.

Magic !!!
;)</description>
		<content:encoded><![CDATA[<p>Hi Haidong Ji,<br />
That was a beautiful script.<br />
It worked perfectly with me on SQL Express 2005</p>
<p>Also, i would like to add that one can copy all the bcp commands and paste it notepad.<br />
Then he can save that as a .bat file.</p>
<p>Then goto CMD and execute the batch file.</p>
<p>Magic !!!<br />
 <img src='http://www.haidongji.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haidong Ji</title>
		<link>http://www.haidongji.com/2009/02/23/moving-data-from-sql-server-to-mysql/comment-page-1/#comment-17693</link>
		<dc:creator>Haidong Ji</dc:creator>
		<pubDate>Thu, 26 Mar 2009 21:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=564#comment-17693</guid>
		<description>No problem Wiley. Glad you got it resolved.</description>
		<content:encoded><![CDATA[<p>No problem Wiley. Glad you got it resolved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wiley Thomas</title>
		<link>http://www.haidongji.com/2009/02/23/moving-data-from-sql-server-to-mysql/comment-page-1/#comment-17692</link>
		<dc:creator>Wiley Thomas</dc:creator>
		<pubDate>Wed, 25 Mar 2009 22:16:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=564#comment-17692</guid>
		<description>Haidong - You are the best!  How many times have I clicked that save button without ever noticing the dropdown that gives you the option to save with encoding?

I chose to save as ANSI and loaded it right into MySQL with no problems.

Thank you,
Wiley</description>
		<content:encoded><![CDATA[<p>Haidong &#8211; You are the best!  How many times have I clicked that save button without ever noticing the dropdown that gives you the option to save with encoding?</p>
<p>I chose to save as ANSI and loaded it right into MySQL with no problems.</p>
<p>Thank you,<br />
Wiley</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Haidong Ji</title>
		<link>http://www.haidongji.com/2009/02/23/moving-data-from-sql-server-to-mysql/comment-page-1/#comment-17691</link>
		<dc:creator>Haidong Ji</dc:creator>
		<pubDate>Wed, 25 Mar 2009 03:45:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=564#comment-17691</guid>
		<description>Hi Wiley,

Not too sure on this one. A quick thought is that if you have direct access to BCP, it is possible to define the collation in a BCP format file so the data is piped out in the right encoding format. Not sure if that helps you, but I will submit a sample BCP format file tomorrow when I have access to it.

Looking at settings that Access take to output a file can also give you a clue. In Query Analyzer (Sql Server 2000 edition), when I save results to a file, assuming that&#039;s how you get your data, I see three options: ANSI, Unicode, and OEM. Have you tried any one of them?

I may do some digging myself and let you know. In the meantime, if you figure it out, I&#039;d be curious to hear about it.</description>
		<content:encoded><![CDATA[<p>Hi Wiley,</p>
<p>Not too sure on this one. A quick thought is that if you have direct access to BCP, it is possible to define the collation in a BCP format file so the data is piped out in the right encoding format. Not sure if that helps you, but I will submit a sample BCP format file tomorrow when I have access to it.</p>
<p>Looking at settings that Access take to output a file can also give you a clue. In Query Analyzer (Sql Server 2000 edition), when I save results to a file, assuming that&#8217;s how you get your data, I see three options: ANSI, Unicode, and OEM. Have you tried any one of them?</p>
<p>I may do some digging myself and let you know. In the meantime, if you figure it out, I&#8217;d be curious to hear about it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wiley Thomas</title>
		<link>http://www.haidongji.com/2009/02/23/moving-data-from-sql-server-to-mysql/comment-page-1/#comment-17690</link>
		<dc:creator>Wiley Thomas</dc:creator>
		<pubDate>Tue, 24 Mar 2009 22:29:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.haidongji.com/?p=564#comment-17690</guid>
		<description>Hi Haidong Ji - Thank you for posting this code.  

I wonder if you have any ideas for another situation.  I&#039;m trying to move data from a MS SQL Server database to MySQL where the MS SQL connection is through Citrix.  I only have access to query analyzer.  I&#039;m able to export the data successfully but when I try to load it into MySQL I encounter errors caused by the character encoding in the downloaded file (UTF-16LE).  If read the file into MS Access and back out I can load it into MySQL.  

Tnanks again,
Wiley</description>
		<content:encoded><![CDATA[<p>Hi Haidong Ji &#8211; Thank you for posting this code.  </p>
<p>I wonder if you have any ideas for another situation.  I&#8217;m trying to move data from a MS SQL Server database to MySQL where the MS SQL connection is through Citrix.  I only have access to query analyzer.  I&#8217;m able to export the data successfully but when I try to load it into MySQL I encounter errors caused by the character encoding in the downloaded file (UTF-16LE).  If read the file into MS Access and back out I can load it into MySQL.  </p>
<p>Tnanks again,<br />
Wiley</p>
]]></content:encoded>
	</item>
</channel>
</rss>
