MYSQL 到 SQL 2008 的迁移
我们每个月都会获得一个 MYSQL 5.0 数据集(1.7gig),我需要创建一个流程来将其迁移到 SQL Server 2008。
这似乎比我最初想象的要困难一些......
我尝试了几种方法
- :导入向导
- 设置链接服务器
我也尝试了不同的方法:
如果我尝试选项 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:
- Using the Import wizard
- Setting up a linked server
I've also tried different ways:
- Using the .net Framework Dataprovider for MYSQL
- 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 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.