.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> DataBase >> Post New Resource Bookmark and Share   

 Subscribe to Articles

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

Posted By:Karthikeyan Anbarasan       Posted Date: April 05, 2011    Points: 200    Category: DataBase    URL: http://www.dotnetspark.com  

In this article we are going to see on how to use a FTP task in SSIS package to Send a file in SQL Server Integration Services (SSIS)
 

Introduction


In this article we are going to see on how to use a FTP task in SSIS package to Send a file. 
 

Steps:


In this article we are going to see on how to use a FTP task container in packaging. FTP task is mainly used to do a file transfer using FTP. SSIS provides the inbuilt task container to do a FTP of a file. Let's jump start to see the on how to use the task in real time. Here I'm going to show a small example on how to configure a FTP task and Send a file to the remote host. 

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 on how to use FTP task container. Drag and drop the FTP task as shown in the below screen.



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



The above image is for setting the FTP Connection, end user need 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 send the file to FTP we need to set as below. Here input variable is used to get the path where we need to get the file.




Here the operation section we need to select Send Files in order to send files to a destination FTP. And in the Remote parameters section we need to specify the FTP site location using a variable and in the local parameter section we need to select the local file location to send file to the remote location.


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

Conclusion


So in this article we have seen on how to use the FTP task to send a file from a local to a remote site.
 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend