将数据迁移到 SQL Server 2008
我正在尝试将数据从 Informix 数据库迁移到 SQL Server 2008。我有相当多的数据需要移动。我已经尝试了多种方法来获取数据,到目前为止,多个块中的 SQLBulkCopy 似乎是我能找到的最快的方法。有谁知道有更快的方法来获取数据吗?我正在努力减少传输时间,以便在切换日期我不会没有时间进行完整的切换。谢谢。
I am trying to migrate data from an Informix database to SQL Server 2008. I've got quite a lot of data to move. I've been try multiple methods to get the data over, and so far SQLBulkCopy in multiple chunks seems to be the fastest that I can find. Does anyone know of a faster means of getting the data over? I'm trying to cut down on the transfer time so that on my cut-over date I don't run out of time to do the full cut-over. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
正如您提到的,我认为 bcp 命令是最快的解决方案。
您可以从数据中创建 csv 文件,然后通过 bcp 命令将其导入到数据库中。
As you mentioned, I think that the bcp command is the fastest solution.
you can make csv file from your data and then import those to your db by bcp command.
您没有什么可以做的来更快地完成这项工作。您可能想要查看的一件事是 sql 数据库的恢复模型。如果当前设置为“完整”,则随着事务日志填满,速度最终会显着减慢。
http://msdn.microsoft.com/en-us/library/ms189275。 aspx
希望有帮助。
There isn't much more you can do to get this work completed faster. One thing you might want to look at though is the recover model for the sql database. If it's currently set to Full, you're going to end up slowing down quite a bit as the transaction log fills up.
http://msdn.microsoft.com/en-us/library/ms189275.aspx
Hope that helps.
如果您可以使用 Ole 或 ODBC 连接到 Informix 数据库,那么 SSIS 可能是最佳选择。
If you can use an Ole or ODBC connection to your Informix database, then SSIS may be the best option.