传输SQL Server对象任务 [英] Transfer SQL Server Objects Task

查看:99
本文介绍了传输SQL Server对象任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我需要将表数据从一个源数据库更新到其他数据库。我的想法是不删除和重新创建对象,因为我可能在目标数据库表中有一些额外的字段。除此之外,如果源
中有任何额外的对象需要在目标数据库中创建。

I have an requirement to update table data from one source database to other database. The idea is not to drop and recreate objects as I may have some extra fields in the destination DB tables. Along with this if any extra objects available in the source that need to be created in the destination database.

我使用SSIS " Transfer SQL Server Objects Task"这是传输数据。但是,在填充数据之前,它看起来像是在目标中删除/截断表。我想实现插入任何新记录或更新如果
是记录中的任何更改。如果不需要,这将避免更新所有对象,并避免在我的目的地中删除额外的字段。

I used SSIS "Transfer SQL Server Objects Task" and this is transferring data. However, looks like it drops / truncates table in the destination before populating data. I would like to implement insert if any new records or update if there are any changes in a record. This will avoid updating all objects if not required and avoid dropping extra fields in my destination.

请提供一些替代方法。

提前致谢!




推荐答案


"传输SQL Server对象任务"这是传输数据。然而,看起来它会下降

"Transfer SQL Server Objects Task" and this is transferring data. However, looks like it drop




是的,这就是为什么它被称为"转移对象"而不是"复制数据";为此你必须使用

数据流任务


Yes, and that's why it's called "Transfer objects" and not "Copy data"; for this you have to use a Data Flow Task


这篇关于传输SQL Server对象任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆