SSIS - Move Excel File with OLEDB Connection to Archive

前端 未结 1 796
无人共我
无人共我 2021-01-29 11:46

I\'ve created a connection using Microsoft Office 12.0 Access Database Engine OLE DB Provider as Excel Schema to loop through all the sheets in the Excel file as de

相关标签:
1条回答
  • 2021-01-29 12:24

    As far as I understand, I think you have a task for looping through sheets and another for looping through files. So you probably have 2 tasks inside a foreach loop. Try making a copy of the file inside the foreach loop with a system task

    for the executable

    c:\windows\system32\cmd.exe
    

    and for the arguments soemthing like

    C COPY "C:\xxx\abc\\Destination_template.accdb" "C:\xxx\abc\\Destination_template.accdb"Destination_template - Kopie.accdb"
    

    Then create a file system task which moves that copy to your archive. This should do the trick (Maybe not the best approach but should work)

    0 讨论(0)
提交回复
热议问题