简体   繁体   English

将记录从MySQL数据库导入MS SQL的最佳解决方案(每小时)

[英]Best solution to import records from MySQL database to MS SQL (Hourly)

I need to import records stored in a MySQL Database that I do not maintain into my Sql Server 2005 database (x64) 我需要将存储在我不维护的MySQL数据库中的记录导入到Sql Server 2005数据库(x64)中

We should import the records at an interval basis (probably 1 hour). 我们应该每隔一段时间(大约1小时)导入记录。

What would be the best solution to perform the regular import? 进行常规导入的最佳解决方案是什么?

  1. Windows Service (using reference MySql.data dll) Windows服务(使用参考MySql.data dll)
  2. Windows Client (could make it automated) Windows客户端(可以使其自动化)
  3. SQL Extended Stored Procedure (is it possible to reference the MySQL.data dll?) SQL扩展存储过程(是否可以引用MySQL.data dll?)
  4. SSIS package - Install MySQL ODBC driver SSIS软件包-安装MySQL ODBC驱动程序

The problem with #4 is that I do not really want to support the ODBC driver on the sql server. #4的问题是我真的不想在sql服务器上支持ODBC驱动程序。

I'm not sure if you can even reference the x86 MySql.data dll into a x64 sql server process for #3. 我不确定是否甚至可以将x86 MySql.data dll引用到#3的x64 sql服务器进程中。 (Or if you can even reference that dll within a sql server project) (或者,如果您甚至可以在sql server项目中引用该dll)

If it were mine to do, I'd go the SSIS route. 如果是我的事,那我去SSIS路线。 Sure, you'll "maintain" the ODBC driver on the server, but compared to the maintenance (and development time and headaches) of the other 3 options, that seems to be the simplest route. 当然,您将“维护”服务器上的ODBC驱动程序,但是与其他3个选项的维护(以及开发时间和头痛)相比,这似乎是最简单的方法。

什么abaut MySql-> * .DAT(每个表)-> FTP到WINSERVER-> SSIS到SQL

4.SSIS包-安装MySQL ODBC驱动程序将是最佳解决方案。

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

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