Solved

SSIS: download and process ftp files

Posted on 2011-03-04
1
725 Views
Last Modified: 2012-05-11
I'm trying to build a package that will download any files from an ftp site. The process consists of getting the file list in the ftp directory, looping through each one filename in the recordset and processing each file individually.

I've got it to a point where I get the file list, if the file count > 0 then perform a ForEach loop which does a ForEach Variable Enumerator based on a recordset containing the names in the remote directory and maps a object variable that stores the remote file name to be processed in the script. This is where I'm stuck. In the script I can't seem to access the value of the remote filename.

Does anyone done a similar routine and can provide info or links to reference material on how to accomplish this, or how can I extract the remote filename data I need?
0
Comment
Question by:wppiexperts
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
lcohan earned 500 total points
ID: 35038858
I don't think you can access a file on a FTP site directly from SSIS or anything else for that matter until you get it on the computer where you need to access it. What I'm tyrying to say is that after you get the filelist from FTP site you should run som FTP script to get the file localy then you could read their content one by one to put them in some SQL table. You should be able to do that via SFTP as nobody wants FTP open on a SQL server box. Is this what you are trying to do?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question