简体   繁体   English

将一些数据从MySQL迁移到MSSQL

[英]Migrate some data from MySQL to MSSQL

I have a MySQL database. 我有一个MySQL数据库。 I need to migrate some (not all) table's data (data records) from MySQL to MSSQL database, herewith convert structure of MySQL tables to new structure in MSSQL. 我需要将一些(不是全部)表的数据(数据记录)从MySQL迁移到MSSQL数据库,这样就可以将MySQL表的结构转换为MSSQL中的新结构。

In future, I need to do automatic periodical synchronization between these databases. 将来,我需要在这些数据库之间进行自动定期同步。 Is there any tools? 有没有工具? or I have to use some SQL proc's or queries? 或者我必须使用一些SQL proc或查询? How can I do these things? 我怎么能做这些事情?

For reference: I'm using MSSQL Server 2008 R2 with ODBC driver for MySQL and SQL Migration Assistant for MySQL (with these tools, I have been fully converted MySQL to MSSQL database only). 供参考:我正在使用MSSQL Server 2008 R2和MySQL的ODBC驱动程序以及MySQL的SQL迁移助手(使用这些工具,我已经完全将MySQL转换为MSSQL数据库)。

Since you already have full SQL 2008, open the Visual Studio Intelligence BI installed with your SQL installation. 由于您已经拥有完整的SQL 2008,因此请打开随SQL安装一起安装的Visual Studio Intelligence BI。 Then create a new project "Integration Services Project". 然后创建一个新项目“Integration Services Project”。

Therefor you create a new connection to your ODBC (should be wizards available). 因此,您创建了一个新的ODBC连接(应该是可用的向导)。 Then add your tables, there you can modify, convert, tranasform the data. 然后添加表格,您可以在那里修改,转换,转换数据。

The complete project you can save and add as sheduled task to your sql server agent. 完整的项目,您可以保存并添加为sduled任务到您的SQL Server代理。

Here is a tutorial which explains more: http://msdn.microsoft.com/en-us/library/ms169917.aspx 这是一个解释更多的教程: http//msdn.microsoft.com/en-us/library/ms169917.aspx

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM