Answer accepted by question author
Hi @reddy421 οΌ
You may try to use script task to do that.
Define the file name with expression as below
"DD_Adjustment_HOLY_"+SUBSTRING((DT_WSTR, 30)getdate(),1,4)+"-"+SUBSTRING((DT_WSTR, 30)getdate(), 6,2)+"-"+SUBSTRING((DT_WSTR, 30)getdate(), 9,2)
Reference here: https://stackoverflow.com/questions/66242015/download-sftp-file-using-ssis-package
RegardsοΌ
Zoe Hui
If the answer is helpful, please click "Accept Answer" and upvote it.
-
reddy421 26 Reputation points
Quick Question @ZoeHui-MSFT ... I was able to achieve what I wanted with your help.
Can you help me how to send an email with the file name that was downloaded in the script task, please?
Should I do that in the Script task only? If so can you help me with this? -
ZoeHui-MSFT 41,551 Reputation points
Hi @reddy421 οΌ
Have a check to see the thread is useful or not.
https://stackoverflow.com/questions/68499295/send-an-email-with-a-file-and-each-time-the-file-name-is-with-the-current-time
