Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RE: FTP several 837 files

Status
Not open for further replies.

allyne

MIS
Feb 9, 2001
410
US
Hi Everyone,

I need to ftp several 837 files all with different names from a folder to an outside source. Is there a way to do this? I tried to use the foreach loop container with the Flat File source container but it doesnt like the file format. Not sure what container I need to use. I'm using SQL2008.

Thanks for your help!
 
why would you use flat file source?

If all you are doing is ftp-ing then stick the ftp task in the for each loop container wit the FELC collection set up as for each file enumerator

Shouldn't matter what format the file is

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Thanks for your response! I'm a little new to SSIS packages. I'll give it a try!
 
np - SSIS can be a little obscure to understand at 1st but it soon gets easier :)

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
To expand on Geoff's advice: Since these are 837 files they likely contain HIPAA restricted data and the receiving site might require a more secure connection than the built-in FTP component can provide (like SFTP or FTPS).

If that ends up being the case, what we do here is use WinSCP as the tool of choice. We use a Script Task within the ForEach Loop container to build a script file which can be passed to the WinSCP command line interface. After the loop, we then use the Execute Process task to fire off WinSCP to send (or get) the files.

You might not need to do this, but something to keep in your bag of tricks.

-Jim-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top