DTS 转换与选择/插入到 t
有谁知道使用 DTS 将数据从一个表复制到另一个表的推荐方法是什么?我们应该在两个连接之间使用标准的 Insert/Select 语句还是 DTS 转换?哪一个更快?有人对此进行过所有性能测试吗?
我现在正在使用 SQL Server 2000,但也想知道 SQL2005+ 的性能如何
Does anybody know what the recommend method is to copy data from one table to another using a DTS? Should we use the standard Insert/Select statement or a DTS transformation between two connections? Which one is faster? Has anybody done every any performance test on this?
I am using SQL Server 2000 right now, but would also like to know how the performance is on SQL2005+
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您升级到 SQL 2005,则必须重写所有 DTS 包。它们已被弃用,取而代之的是 SQL Server Integration Services。
所以我会选择直接的 SQL,或者可能是 bcp 实用程序。
If you ever upgrade to SQL 2005, you'll have to rewrite any DTS packages. They're deprecated in favor of SQL Server Integration Services.
So I'd go for the straight SQL, or perhaps the bcp utility.
我不会使用 DTS 来完成此任务,而只使用 T-SQL
如果目标表的架构与以下内容不完全相同源,您可以操作 SELECT 语句以按照您想要的方式获取它。
由于您使用的是 SQL 2000,因此您无法利用带有 TABLOCK 的 INSERT 来获取批量操作而不删除表。
I would not use DTS for this task and just use T-SQL
If the schema of the destination table is not exactly the same as the source, you can manipulate the SELECT statement to get it how you want it.
Since you're on SQL 2000, you can't take advantage of the INSERT with TABLOCK to get the bulk operation without dropping the table.