How to avoid SSIS FTP task from failing when there are no files to download?

后端 未结 12 837
时光取名叫无心
时光取名叫无心 2020-12-01 06:42

I\'m using SQL Server 2005, and creating ftp tasks within SSIS.

Sometimes there will be files to ftp over, sometimes not. If there are no files, I don\'t want the

12条回答
  •  半阙折子戏
    2020-12-01 07:26

    I don't have a packaged answer for you, but since no one else has posted anything yet...

    You should be able to set a variable in an ActiveX script task and then use that to decide whether or not the FTP task should run. There is an example here that works with local paths. Hopefully you can adapt the concept (or if possible, map the FTP drive and do it that way).

提交回复
热议问题