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

Upload text file to FTP site only when text file has some data

$
0
0

Hi,

I have a SSIS package which after all the calculation loads data in the target .txt file. There are 2 targets files coming out of the SSIS package, which may have data in both the target files or may not have data in any. 

I have to upload the target file to FTP server only when the files has data. If any 1 file has data upload only that file to FTP and do not upload the other file. So if both the files have no data do upload any in the FTP server.

I was able to create a script task to upload all the target files in the local folder to FTP server. I am struggling to upload files based on the above criteria.

Any suggestion how should I do that? I think I should be writing the code in the script task. But since I am not very good with VB .NET, I am struggling. 


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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