<?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>LogikDevelopment &#187; Python</title>
	<atom:link href="http://www.logikdev.com/category/python/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.logikdev.com</link>
	<description>&#34;Il n&#039;y a pas de problème, il n&#039;y a que des solutions. L&#039;esprit de l&#039;homme invente ensuite le problème.&#34; André Gide</description>
	<lastBuildDate>Sun, 06 May 2012 12:29:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Convert SQL Server to MySQL</title>
		<link>http://www.logikdev.com/2011/10/17/convert-sql-server-to-mysql/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=convert-sql-server-to-mysql</link>
		<comments>http://www.logikdev.com/2011/10/17/convert-sql-server-to-mysql/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 21:51:34 +0000</pubDate>
		<dc:creator>smoreau</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[data type]]></category>
		<category><![CDATA[mssql2mysql]]></category>
		<category><![CDATA[SQL dump]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://www.logikdev.com/?p=1487</guid>
		<description><![CDATA[Some time ago, I had to convert a Microsoft SQL Server database to a MySQL database. The main reason was the cost of the SQL Server license for such a small database. Looking on the web, I found the following open source application: Name: mssql2mysql URL: http://sourceforge.net/projects/mssql2mysql/ Description: mssql2mysql is a python script used to [...]]]></description>
			<content:encoded><![CDATA[<p>Some time ago, I had to convert a Microsoft SQL Server database to a MySQL database. The main reason was the cost of the SQL Server license for such a small database.</p>
<p>Looking on the web, I found the following open source application:</p>
<table style="border:0px;">
<tr>
<td style="border:0px;"><strong>Name:</strong></td>
<td style="border:0px;">mssql2mysql</td>
</tr>
<tr>
<td style="border:0px;"><strong>URL:</strong></td>
<td style="border:0px;"><a href="http://sourceforge.net/projects/mssql2mysql/" target="_blank">http://sourceforge.net/projects/mssql2mysql/</a></td>
</tr>
<tr>
<td style="border:0px;vertical-align:top;"><strong>Description:</strong></td>
<td style="border:0px;">mssql2mysql is a python script used to create a SQL dump from a Microsoft SQL server that is ready to use with MySQL. Supports Schema and data dumping, including Primary Keys for each table, allows to dump all data or just a small portion of it.</td>
</tr>
</table>
<p>To be honest, this tool wasn&#8217;t working as expected but it was a very good start! <img src='http://www.logikdev.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Below is the list of changes I&#8217;ve made:</p>
<ul>
<li>Add support for the <code>bool</code> data type;</li>
<li>Add support for the <code>datetime</code> data type;</li>
<li>Only convert tables and views of the &#8216;dbo&#8217; owner;</li>
<li>Add the test <code>columnas[6]==True</code> on the primary key;</li>
<li>Add support for the <code>uniqueidentifier</code> data type;</li>
<li>Add support for the <code>tinyint</code> data type (SQL Server is <code>tinyint unsigned</code> by default, but not in MySQL!);</li>
<li>Add support for the default column values;</li>
<li>Add support for the <code>bit</code> data type (use <code>tinyint</code> instead of <code>bit</code>, go to <a href="http://www.xaprb.com/blog/2006/04/11/bit-values-in-mysql/" target="_blank">this page</a> for more information).</li>
</ul>
<p>To download the amended script, please click on the following link: <a href="http://www.logikdev.com/wp-content/uploads/2011/10/mssql2mysql.tar.bz2">mssql2mysql.tar.bz2</a></p>
<p>This script worked perfectly fine for me. However, please note that my interest was focused on converting the database structure but not the content!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.logikdev.com/2011/10/17/convert-sql-server-to-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

