在SSIS中插入新记录之前,如何清空目标表?

编程入门 行业动态 更新时间:2024-10-28 18:33:29
本文介绍了在SSIS中插入新记录之前,如何清空目标表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用SSIS生成和转换新数据,以供以后在新系统中使用。每次运行SSIS程序包时,我都会遇到问题,它会不断向我的目标表中插入新记录。

I use SSIS to generate and transform new data for later use in a new system. I have a problem every time I run my SSIS Package, it keeps inserting new records to my destination tables.

如何先清空目标表(/ OLE DB目标),然后插入新生成的记录?

How can I empty my destination table (/OLE DB Destination) first and then inserting the newly generated records?

当前,此问题的解决方法是在运行程序包之前从DestTable中删除 。

Currently the workaround for this problem is performing a delete from DestTable before running my package.

推荐答案

将您的delete语句放入 Execute SQL Task 中。然后使其成为流程的第一部分。该组件看起来像这样:

Put your delete statement in an Execute SQL Task. Then make it the first component of your flow. The component looks something like this:

更多推荐

在SSIS中插入新记录之前,如何清空目标表?

本文发布于:2023-10-16 10:51:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1497362.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:清空   目标   SSIS

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!