Solved

SSIS: download and process ftp files

Posted on 2011-03-04
1
719 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
1 Comment
 
LVL 39

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

831 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