Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何通过在 Dataflow 任务中从服务器 A 读取数据来在服务器 B 上加载临时表。
替代文字 http://img405.imageshack.us/img405/7127/temptable.gif
简短的回答是不要这样做。SSIS 和临时表不混合。有一些方法可以解决这个问题,但它们不可维护或不可扩展。使用物理表并在任务流开始时截断它。
为什么需要写入临时表?您可以简单地对内存中的缓冲区执行所需的任何转换,然后将其写入最终表。众所周知,在 SSIS 中写出临时表非常困难,而且通常不值得努力。请参阅 Jamie Thomson 的这篇博客文章,了解如何做到这一点,但请注意他在帖子底部的警告:
http://consultingblogs.emc.com/jamiethomson/archive/2006/11/19/SSIS_3A00_-Using-temporary-tables.aspx