FTP Task

Additional information


SQL Server Version

, , , , ,



FTP (File Transfer Protocol) is a network protocol that allows file transferring between machines. SSIS includes an FTP task that will download and upload data files and from an FTP location. Let’s find out how does it work and how do we configure it properly.

Let’s create and configure an FTP connection first.

  1. Find the Connection Manager tab (usually on the bottom area of the screen) and click on “New Connection…”;
  2. Once the “Add SSIS Connection Manager” opens up, find the “FTP” Connection manager in the list;
  3. The FTP Connection Manager Editor will open up:
  4. Under Server settings, enter the name of your FTP server and the port;
  5. If you don’t have an FTP server, you can always create an FTP site on your local machine, if you have Windows 10. If you need help with that, click HERE to read a guide on that.
  6. Under Credentials, use the username and the password that you use for authentication;

The rest can be left as it is:

  1. Checking the passive mode will allow the client to activate the connection, if left unchecked, the server will initiate the connection;
  2. Retries will dictate the number of retires allowed to establish a connection;
  3. The “Text Connection” button will check if the connection is valid or not.
  4. More info on the FTP Connection is available on the Microsoft Documentation website.

Let’s find out how the actual task works...

  1. Find the FTP Task in the SSIS Toolbox and drag and drop it on top of the Control Flow area;
  2. Double clicking one the task will open up the FTP Task Editor

General Tab

FtpConnection – select an already created FTP connection or create a new one;
Name and Description – up to the user’s preference;

File Transfer Tab

The Local Parameters will allow the user to configure the source.

There are about 8 different operations:

  1. Send files – uploads files from your machine to the FTP server/site;
  2. Receive files – downloads files from the FTP server;
  3. Create a local directory – creates a directory on your machine;
  4. Create a remote directory – creates a directory on the FTP server;
  5. Remove local directory – deletes a directory on your machine;
  6. Remove remote directory – deletes a directory on the FTP server;
  7. Delete local files– delete files from your machine;
  8. Delete remote files– delete files from the FTP server.

The Remote Parameters will allow the user to configure the destination.

Expression Tab

This section allows the user to evaluate the SSIS FTP Task properties as expressions.