简体   繁体   English

将数据迁移到SQL Server 2008

[英]Migrating Data to SQL Server 2008

I am trying to migrate data from an Informix database to SQL Server 2008. I've got quite a lot of data to move. 我正在尝试将数据从Informix数据库迁移到SQL Server2008。我要移动很多数据。 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. 我一直在尝试多种方法来获取数据,到目前为止,以多个块为单位的SQLBulkCopy似乎是我能找到的最快的方法。 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. 谢谢。

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. 不过,您可能要看的一件事是sql数据库的恢复模型。 If it's currently set to Full, you're going to end up slowing down quite a bit as the transaction log fills up. 如果当前设置为Full,那么随着事务日志的填满,您最终将放慢速度。

http://msdn.microsoft.com/en-us/library/ms189275.aspx http://msdn.microsoft.com/en-us/library/ms189275.aspx

Hope that helps. 希望能有所帮助。

As you mentioned, I think that the bcp command is the fastest solution. 如您所述,我认为bcp命令是最快的解决方案。 you can make csv file from your data and then import those to your db by bcp command. 您可以从数据制作csv文件,然后通过bcp命令将其导入到db。

如果可以使用Ole或ODBC连接到Informix数据库,则SSIS可能是最佳选择。

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

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