SIGN UP MEMBER LOGIN:    
ARTICLE

SQL Server Integration Services (SSIS) - Receive File using FTP Task in SSIS Package

Posted by Karthikeyan Anbarasan Articles | SQL Server 2012 March 31, 2011
SQL Server Integration Services (SSIS) – Receive File 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 receive a file. To follow my series of articles on SSIS packages refer to my profile for the links.

Steps:

In this article we are going to see how to use a FTP task container in packaging. A FTP task is mainly used to do a file transfer using FTP. SSIS provides the in-built task container to do a FTP of a file. Let's jump start to see the how to use the task in real time. Here i'm going to show a small example how to configure a FTP task and receive a file.

Follow steps 1 to 3 on 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 a 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 click on the Test Connection to confirm if the connection is valid. 

Now in the file transfer tab we need to set the property since in our example we are going to receive the file from FTP we need to set as below. Here input variable is used to get the path where we need to save the file.



Here once you have given valid credentials by running directly the package will do the necessary steps of receiving the files from FTP to the local folder.

Conclusion

So in this article we have seen how to use the FTP task to receive a file from a site and save it in a local folder.

Login to add your contents and source code to this article
share this article :
post comment
 
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Team Foundation Server Hosting
Become a Sponsor