I need to create an SSIS package that handles dealing with SFTP and could use some insight/help. Here's the scenario in a nutshell:
We are connecting to one of our vendors FTP servers via SFTP. Once on the server, we need to retrieve a file with a format of let's say I_NEED_THIS_FILE_CCCCMMDD, where CCCCMMDDHHMMSS is the date of the file with the time.
What I need to do is find any files with that format, but I'm only interested in the most recent one. If the process finds more than one file matching that format, it needs to move the other files to a specified folder and only retrieve the most recent one.
I have downloaded CozyRoc in order to use their SFTP SSIS component. It has a task for both retrieving files on an FTP server as well as renaming files.
My question is has anyone done something similar to what my needs are utilizing the CozyRoc component, and if so, how did you address the issue of looking for a certain file name with a certain date range (file date)?
Any help would be greatly appreciated!
And I'm sure this can all be accomplished utilizing custom scripts, but unfortunately, I'm not the strongest of script writers...so the easier the better...
A. M. Robinson