Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Downloading Everyday Files from SFTP

$
0
0
Hi Everyone,

How we get everyday files from SFTP. In SFTP server everyday got files name like' filename_yyyymmdd'.

This last date part is changing everyday as per current date. So i need to download one day before file to my local drive and then updating in databases. I used this below statements to downloading specific file name but i need everyday 1 day before file.

option batch on

option confirm off

open sftp://user:password@ipaddress:port

cd mydir

option transfer binary

get Filename_20130530.csv

close

exit

Many Thanks

Anil L


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>