How to execute SSIS package when a file is arrived at folder

后端 未结 4 933
旧时难觅i
旧时难觅i 2020-12-03 15:32

The requirement is to execute SSIS package, when a file is arrived at a folder,i do not want to start the package manually .

It is not sure about the file arrival ti

4条回答
  •  被撕碎了的回忆
    2020-12-03 16:03

    As others have already suggested, using either WMI task or an infinite loop are two options to achieve this, but IMO SSIS is resource intensive. If you let a package constantly run in the background, it could eat up a lot of memory, cpu and cause performance issues with other packages depending on how many other packages you've running. So other option you may want to consider is schedule an Agent job every 5 minutes or 10 minutes or something and call your package in the job. Configure the package to continue only when a file is there or quit otherwise.

提交回复
热议问题