[英]Exporting a csv file to remote server using SFTP in SSIS
I am working on an ssis
package which gets data from SQL data source
and exports it to a csv
file which in turn should be copied to different folders on remote server using SFTP
我正在研究一个
ssis
软件包,该软件包从SQL data source
获取数据并将其导出到csv
文件,然后应使用SFTP
将其复制到远程服务器上的其他文件夹中
I have the first two steps completed but I am wondering how I can SFTP
the same file into more than one folder on same remote server. 我已经完成了前两个步骤,但是我想知道如何将同一文件
SFTP
传输到同一远程服务器上的多个文件夹中。
Do I have to write a different package to handle the file export to different folders or can it be done on the same package. 我是否必须编写其他程序包来处理文件导出到不同文件夹的问题,还是可以在同一程序包上完成此操作?
Please note that number of folders that this file should be copied to varies from time to time. 请注意,此文件应复制到的文件夹数量有时会有所不同。
您是否可以为每个循环容器创建一个具有多个复制到SFTP动作的循环容器, 并将文件名设置为要在每个SFTP动作的FEL中填充的表达式?
You can use Dataflow task in combination with SFTP task and precedence constraints to accomplish this. 您可以结合使用Dataflow任务和SFTP任务和优先级约束来完成此任务。
You will need to configure the path variables also for the separate destinations on the SFTP server. 您还需要为SFTP服务器上的单独目标配置路径变量。
Once the first SFTP task completes, the next Dataflow task and SFTP transfer will begin. 第一个SFTP任务完成后,下一个数据流任务和SFTP传输将开始。
The answer is you can do do it in the same package. 答案是您可以在同一程序包中完成此操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.