简体   繁体   English

如何将MS SQL导出到MySql表中?

[英]How can i export MS SQL into MySql table?

How can i export large tables from MS SQL into MySql table. 如何将大型表从MS SQL导出到MySql表。 Please note that the tables a large and. 请注意,表很大。

I tried the mysql migration toolkit that is in MySql Workbench but i could not establish connectons to the SQL server 我尝试了MySql Workbench中的mysql迁移工具包,但无法建立与SQL Server的连接

Please advise me on the best way to do this? 请建议我最好的方法吗?

Thanks :) 谢谢 :)

One method of doing it (if it really is a lot of data and a lot of tables): creating a linked server in SQL Server and using it to push data into MySQL. 一种实现方法(如果确实有大量数据和大量表):在SQL Server中创建链接服务器,并使用它将数据推入MySQL。

This article gives step-by-step instructions to create the linked server. 本文提供了创建链接服务器的分步说明。

ANd then just run queries against your tables like so: 然后只需对表运行查询,如下所示:

INSERT INTO OPENQUERY (<LINKED SERVER>, 'SELECT * FROM MySQL_Table') 
SELECT * FROM dbo.SQL_Table 

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

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