?
Solved

SSIS: download and process ftp files

Posted on 2011-03-04
1
Medium Priority
?
727 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 2000 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

SQL Server engine let you use a Windows account or a SQL Server account to connect to a SQL Server instance. This can be configured immediatly during the SQL Server installation or after in the Server Authentication section in the Server properties …
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

764 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