Bulk Insert Multiple XML files with SSIS 2008

后端 未结 2 587
无人及你
无人及你 2021-01-16 22:59

I have a folder with multiple XML files. I need to bulk insert each one into a table in sql server. I am at a complete loss as to how to get this to work, as I am new to S

2条回答
  •  时光说笑
    2021-01-16 23:55

    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.

提交回复
热议问题