数据迁移:什么方式是最好的迁移方式?
我正在MS SQL 2005中对两个数据库进行数据迁移。记录超过200000条,近300000条。我需要使用联接从源数据库进行查询,并在目标数据库中插入2或3个表。
哪种方法是最好的方法?请建议我。我正在尝试用 VB.NET 编写一个程序。如果您有样品,请告诉我如何做。
提前致谢, 红魔队
I am doing data migration two database in MS SQL 2005. The records are more than 200000 nearly 300000. I need to query from source database using joins and insert 2 or 3 tables in destination databse.
Which way is the best way to do so? Please suggest me. I am trying to write a program with VB.NET. If you have sample, please show me the way how to.
Thanks in advance,
RedsDevils
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
源数据的问题是否明确定义?如果是这样,那么您只需使用链接服务器,并从其中一个进行查询数据库并插入到目标中,使用选择查询过滤掉不良数据。这将消除在 .NET 中编写任何内容的需要......
Is the issue with the source data well defined? If so, then you can just use Linked Servers, and query from one database and insert into the target filtering out the bad data using your select query. This would remove the need to write anything in .NET...