<?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"
	>
<channel>
	<title>Comments on: Migration from MySQL to SQL Server 2005 Express Edition</title>
	<atom:link href="http://www.blogexmachina.com/mysql/migration-from-mysql-to-sql-server-2005-express-edition/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.blogexmachina.com/mysql/migration-from-mysql-to-sql-server-2005-express-edition/</link>
	<description>life, passion, technology</description>
	<pubDate>Mon, 01 Dec 2008 20:24:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: protected static</title>
		<link>http://www.blogexmachina.com/mysql/migration-from-mysql-to-sql-server-2005-express-edition/#comment-124</link>
		<dc:creator>protected static</dc:creator>
		<pubDate>Sat, 29 Mar 2008 04:53:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogexmachina.com/mysql/migration-from-mysql-to-sql-server-2005-express-edition/#comment-124</guid>
		<description>Very useful, thanks...

Here's a thought - instead of doing it all by hand, you could link to INFORMATION_SCHEMA, too.
Declare an nvarchar @table_name to hold table name, instantiate a cursor on this:

select [table_name] from tables where table_schema = "Db_NAME"

Use the cursor to loop through all the table names, setting @table_name with each fetch and generating your 'select * into' statements which you can then execute with sp_executesql.

If you want to be really snazzy about it, you could generate ALTER TABLE commands for each table name - select * from columns where table_name = @table_name will get you a lot of information you can use, as would select * from constraints where table_name = @table_name

Of course, you'd need cursors within cursors to iterate through these additional resultsets, but without a terrible amount of work you could replicate a lot more of the MySQL database's objects in your MS SQL database...</description>
		<content:encoded><![CDATA[<p>Very useful, thanks&#8230;</p>
<p>Here&#8217;s a thought - instead of doing it all by hand, you could link to INFORMATION_SCHEMA, too.<br />
Declare an nvarchar @table_name to hold table name, instantiate a cursor on this:</p>
<p>select [table_name] from tables where table_schema = &#8220;Db_NAME&#8221;</p>
<p>Use the cursor to loop through all the table names, setting @table_name with each fetch and generating your &#8217;select * into&#8217; statements which you can then execute with sp_executesql.</p>
<p>If you want to be really snazzy about it, you could generate ALTER TABLE commands for each table name - select * from columns where table_name = @table_name will get you a lot of information you can use, as would select * from constraints where table_name = @table_name</p>
<p>Of course, you&#8217;d need cursors within cursors to iterate through these additional resultsets, but without a terrible amount of work you could replicate a lot more of the MySQL database&#8217;s objects in your MS SQL database&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Machinista</title>
		<link>http://www.blogexmachina.com/mysql/migration-from-mysql-to-sql-server-2005-express-edition/#comment-117</link>
		<dc:creator>Machinista</dc:creator>
		<pubDate>Thu, 20 Mar 2008 03:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogexmachina.com/mysql/migration-from-mysql-to-sql-server-2005-express-edition/#comment-117</guid>
		<description>Maybe it's because anybody who's willing to use MySQL and MS SQL (not a hard core fan of, but is willing to use either, depending on the project) knows that you can download a pirated version of SQL Server 2005 Enterprise Edition.  This edition, of course, does have automated MySQL data and structure import.

Anyways, thanks Lucian.</description>
		<content:encoded><![CDATA[<p>Maybe it&#8217;s because anybody who&#8217;s willing to use MySQL and MS SQL (not a hard core fan of, but is willing to use either, depending on the project) knows that you can download a pirated version of SQL Server 2005 Enterprise Edition.  This edition, of course, does have automated MySQL data and structure import.</p>
<p>Anyways, thanks Lucian.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lucian</title>
		<link>http://www.blogexmachina.com/mysql/migration-from-mysql-to-sql-server-2005-express-edition/#comment-116</link>
		<dc:creator>Lucian</dc:creator>
		<pubDate>Wed, 19 Mar 2008 20:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogexmachina.com/mysql/migration-from-mysql-to-sql-server-2005-express-edition/#comment-116</guid>
		<description>I was surprised to see that there is not too much material on the web when I had to do this transition from mysql to sql server express. I'm glad I could be of help.</description>
		<content:encoded><![CDATA[<p>I was surprised to see that there is not too much material on the web when I had to do this transition from mysql to sql server express. I&#8217;m glad I could be of help.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
