Bulk Insert Multiple XML files with SSIS 2008

你。 提交于 2019-12-01 14:00:47

You can accomplish this by using a ForEach Loop Container with an enumerator type of file. If the XML files are complex, you can use an XML Task. Otherwise, use a Data Flow with an XML Source.

If you choose to do so, the following article explains how to use an XML Source.

There is a step to the process that isn't apparent. When you set up your For-Each, and assign the file to a variable (IE: User::InputFile), if you try to use that in the XML Source (XML file from variable), it will give you an error saying it can't read the variable.

And it can't. You have to prime the pump by manually entering an example (working) file address in the variables tab to the variable that will be providing the address (IE: User::Inputfile).

Do this and it will let you progress to the columns tab, where you can finish utilizing the for-each loop.

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