Meta Data refresh while looping through tables in SSIS

房东的猫 提交于 2019-12-11 05:27:10

问题


The situation: I have a list of queries written so that each select data from their respective table. I want to create this list of queries as an SSIS object variable and iterate through each one, using the query as a OLE DB source in a DFT.

Is there any way to do this so that the DFT source component does not have an issue with the meta data being incorrect, after we switch to a query using a different table than the first?

The destination will also be changing as well. I know that you can delay the validation but i don't believe that helps with the switching meta data.


回答1:


No, if the meta data is not the same for all queries, then you cannot use them in a single data flow task. The meta data for a DFT is set at design time, and cannot change or "refresh" during a run. You're correct that delaying validation will not help with this.

You might want to look into BiML, which dynamically creates packages based on meta data.



来源:https://stackoverflow.com/questions/45081957/meta-data-refresh-while-looping-through-tables-in-ssis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!