简体   繁体   English

SSIS删除和重新创建目标表

[英]SSIS Delete and Recreate Destination Table

I was creating a trigger and accidentally ran it on production instead of testing. 我创建了一个触发器,然后不小心在生产环境中运行了它,而不是进行测试。 I have a backup where no information will be lost in this specific table, but I only need to restore this single table. 我有一个备份,在该特定表中不会丢失任何信息,但是我只需要还原该单个表。

Using SSIS how can I simply: 使用SSIS,我如何简单地:

  • Only update a single column to make it match the backup table. 仅更新单个列以使其与备份表匹配。 -or -要么

  • Drop and recreate the table exactly the same as the one I have? 删除并重新创建与我拥有的表完全相同的表?

[免责声明:我假设您已经备份了数据库]如果您有QA或Dev环境,则可以在其上还原生产副本,然后使用SSIS使用SCD进行更新,或者执行截断/删除操作并复制数据。

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

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