ARTICLE

SQL Server Integration Services (SSIS) - Delete remote folder using FTP Task in SSIS Package

Posted by Karthikeyan Anbarasan Articles | SQL Server 2012 March 31, 2011
SQL Server Integration Services (SSIS) - Delete remote folder using FTP Task in SSIS Package.
Reader Level:

Introduction

In this article we are going to see how to use a FTP task in SSIS package to delete a remote folder using FTP Task in SSIS packaging.

To follow my series of articles on SSIS packages refer to my profile for the links...

Steps:

Follow steps 1 to 3 in my first article to open the BIDS project and select the right project to work on integration services project. Once the project is created, we will see how to use FTP task container. Drag and drop the FTP task as shown in the screen below.


Now double-click on the task to open the property window and set the properties as shown in the screen below.


The above image is for setting the FTP Connection; the end user needs to provide the correct connection settings and can click on the Test Connection to confirm that the connection is valid.

Now in the file transfer tab we need to set the property since in our example we are going to delete a folder in the remote server we need to set as below. Here input variable is used to get the path where we need to delete the folders remotely.



Here once you have given valid credentials by running directly, the package will delete the folder in the remote server using the FTP Task.

Conclusion

So in this article we have seen how to delete the folder in the remote server.

Login to add your contents and source code to this article
post comment
     
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
Get Career Advice from Experts
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.