MYSQL 到 SQL 2008 的迁移

发布于 2024-07-30 05:02:07 字数 741 浏览 1 评论 0原文

我们每个月都会获得一个 MYSQL 5.0 数据集(1.7gig),我需要创建一个流程来将其迁移到 SQL Server 2008。

这似乎比我最初想象的要困难一些......

我尝试了几种方法

  1. :导入向导
  2. 设置链接服务器

我也尝试了不同的方法:

  1. 使用 .net Framework Dataprovider for MYSQL
  2. 使用 MYSQL ODBC 5.1 驱动程序。

如果我尝试选项 1 + 1(向导,使用 odbc),我会得到“无法检索列信息”, 选项 2 + 4,我收到一条消息:“无法从链接服务器“服务器名称”的 OLE DB 提供程序“MSDASQL”获取列信息。”

这感觉像是缓存或大小问题,因为如果我将返回的行数限制为小于 300,000,它就可以工作。 这更烦人,因为主表超过 120 万行。

所以我的问题分为两部分:我这样做的方式正确还是错误,我是否错过了一些明显的事情?

We get a MYSQL 5.0 dataset each month (1.7gig) and I need to create a process to migrate this to a SQL Server 2008.

This seems a little harder than I first thought...

I've tried a few ways:

  1. Using the Import wizard
  2. Setting up a linked server

I've also tried different ways:

  1. Using the .net Framework Dataprovider for MYSQL
  2. Using MYSQL ODBC 5.1 driver.

If I try options 1 + 1 (Wizard, using odbc), I get "unable to retrieve column information",
Option 2 + 4, I get a message: "Cannot get the column information from OLE DB provider "MSDASQL" for linked server "server name"."

This feels like a cache, or size issue, because if I limit the rows I return to less than 300,000 it works. This is more annoying as the main table is over 1.2 million rows.

So my questions two parts: Am I doing this the right or wrong way, and have I missed something obvious?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

囚我心虐我身 2024-08-06 05:02:07

您可以使用 SQL Server Integration Services 连接到 MySQL 数据库并把你需要的数据拉过来。 SSIS 团队博客在 从 SSIS 连接到 MySQL。 构建 SSIS 包后,每次获得新的数据转储时都可以重复使用它。

You can use SQL Server Integration Services to connect to the MySQL database and pull the data you need over. The SSIS team blog has a walk-through for connecting to MySQL at Connecting to MySQL from SSIS. Once you build your SSIS package, you can re-use it each time you get a new data dump.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文