当前位置 : 主页 > 网页制作 > xml >

SSIS foreach组件循环遍历文件夹下文件并将数据插入到表 - XML源

来源:互联网 收集:自由互联 发布时间:2021-06-13
Steps : Add variables : varFileFullName expression: @[User::varFilePath]+ @[User::varFileName] varFileName default vaule : [file name] varFilePath default value : [fiel path] set file folder and name use foreach container to get the file na

 

Steps :

 

  • Add variables :
    1. varFileFullName               expression: @[User::varFilePath]+ @[User::varFileName]
    2. varFileName                       default vaule : [file name]
    3. varFilePath                         default value : [fiel path]
    4. set file folder and name use foreach container to get the file name one by one . ( * - wildcard character)

                       

 

  • pass the file name to varFileName variables.

 

  • edit xml source  - XML file from variable.

 

 

  • loop get file name and do insert action file by file .

 

网友评论