posted 12/21/2011 9:45:26 AM by Raunak Jhawar - Views: [15635]
SQL Server 2012 Denali CTP3 SSIS – Sending files using FTP Task
Hello!
We at SQLServerGeeks.com are committed to spread the knowledge as we gain in the process of evaluating the newly released SQL Server 2012 CTP 3 release code named “Denali”.
In the last post, we had a short walkthrough for receiving files from an SFTP server using SSIS Execute Process Task. You can find the published content here
In this post, we shall send files or upload files to a remote server using FTP.
We have two distinct approaches available:
We shall use the FTP Task in the post to send files to the remote server.
Drag the FTP Task component on the designer window
Now double click on the component. This will open the FTP Task Editor.
Using this window, one can establish a new FTP connection manager; configure the task for a specific FTP operation (such as Send Files, Receive Files etc.) and also add any expression to tweak the task execution.
Note:
Let us take up a small project to send multiple files to a remote server using FTP
Here since we have to send multiple files, I have used a FEL (for each loop) task to loop on the directory content. The FEL and FTP task will do the following actions:
That’s all. Happy learning
In the next post, we shall see yet another exciting feature in SSIS which is called a parameterize the task
Find us on Facebook at http://www.FaceBook.com/SQLServerGeeks and Twitter at @SqlServerGeeks
Thanks | Raunak Jhawar | t:@raunakjhawar
Raunak Jhawar (Member since: 7/12/2011 6:42:24 AM) Specilaist for Intensive Data Computing.
View Raunak Jhawar 's profile
How come no one has raised the issue with FTP task when sending(uploading) mutiple files to ftp sites. You can send a single file but when you use a wild card, it gives error. It will be great if anyone has example how to configure it.
I have the following configuration on FTP Task
A. Receive Files(Downloading multiple files): ==> Works Fine and will download mutiple files from ftp site
Remote parameter= /MycompanyDir/*.*
Local parameter=d:\customerFiles\
Send files: (Uploading multiple files): : ==> Failed
Local parameter=d:\customerFiles\*.*
Remote parameter= /MycompanyDir/
Thank you for visting the blog. The way out would be to loop on a directory folder and send one file at a time to the remote destination. This is showcased in the blog posted above.
Please feel free to get back incase you require any further assistance.
Leave a comment