简体   繁体   English

在SSIS中使用SFTP将CSV文件导出到远程服务器

[英]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.

相关问题 使用SSIS将列记录从.CSV导出到SQL Server中的多个表 - Exporting column records from .CSV to multiple table in SQL Server using SSIS 是否可以让 SQL 服务器登录到 SFTP 并仅使用 T-SQL 命令上传文件,而不是 SSIS? - Is it possible to get SQL Server to log into an SFTP and upload a file just by using T-SQL commands, no SSIS? 使用SQL Server存储过程导出csv文件中的表数据 - Exporting table data in csv file using SQL Server stored procedure 使用SSIS将CSV文件导入到SQL Server表 - Importing CSV file to a SQL Server table using SSIS 使用SSIS 2012将数据从Sql Server 2014导出到Excel文件 - Exporting Data to Excel file From Sql Server 2014 using SSIS 2012 无法使用SSIS连接到远程SQL Server - Unable to connect to remote SQL server using SSIS CSV文件通过SSIS导入SQL服务器 - CSV file import into SQL Server through SSIS 使用SSIS将图像从SQL Server表导出到文件夹不起作用 - Exporting images from a SQL Server Table to a Folder using SSIS not working 如何将 sql 服务器查询结果导出到 .csv 文件,数据在导出文件中应使用双引号 SSIS - How to export the sql server query result to .csv file and data should be double quotes in exported file using SSIS 每天从sFTP中的CSV文件中馈入SQL Server表 - Daily Feed a SQL server table from a CSV file in sFTP
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM