dbTalk Databases Forums  

Automate FTP transfer...

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Automate FTP transfer... in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Brett Davis
 
Posts: n/a

Default Automate FTP transfer... - 07-22-2004 , 06:48 PM






Hello...

I want to log into a FTP server using DTS and find the latest file sitting
on the FTP server. Then I want to download it to a specific directory. I
am using SQL Server 2000. I am able to use the FTP task in DTS... but with
that I have to manually find and select the new file I want to bring over.
Is there a way I can programmatically do that? If so... are there any
examples I can go to or see?

Please advise...

Cheers!

Brett



Reply With Quote
  #2  
Old   
Wes
 
Posts: n/a

Default Re: Automate FTP transfer... - 07-23-2004 , 03:07 PM







Brett,

If the file names are standardized (file20040723 today, file20040724
tomorrow) you could do this by generating the next file name into a
Global Variable using an ActiveX script and then using a Dynamic
Properties Task to set the new file name in you FTP task.

If the file name cannot be predicted I would consider using an FTP
Program that lets you synchronize directories (I know that WS_FTP Pro
does this), and using that to move the files. Perhaps someone else
here can recommend a way to do this using DTS.

Wes

Brett Davis wrote:
Quote:
Hello...

I want to log into a FTP server using DTS and find the latest file
sitting
on the FTP server. Then I want to download it to a specific
directory. I
am using SQL Server 2000. I am able to use the FTP task in DTS...
but with
that I have to manually find and select the new file I want to bring
over.
Is there a way I can programmatically do that? If so... are there
any
examples I can go to or see?

Please advise...

Cheers!

Brett


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.