Hi @nononame2021 ,
In SSIS it is usually done by using File System Task.
Check it out here: rename-file-using-file-system-task-in-ssis
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
how can I rename the output file to add datetime for output excel file after export the excel file from ssis. can I add a task after generate excel file.
any reference?
Hi @nononame2021 ,
In SSIS it is usually done by using File System Task.
Check it out here: rename-file-using-file-system-task-in-ssis
Hi @nononame2021 ,
Welcome to Microsoft Q&A!
Yes, you could rename file name by using File system task, like YitzhakKhabinsky-0887 mentioned. Please refer to below details:
FullFilePath Expression: @[User::FilePath]+"\\"+@[User::FileName]
RenameFilePath Expression:
@[User::FilePath] + "\\" +
SUBSTRING(@[User::FileName], 1, FINDSTRING(@[User::FileName],".",1) -1 ) + (DT_WSTR,4)YEAR(GETDATE()) + (DT_WSTR,2)MONTH(GETDATE()) + (DT_WSTR,2)DAY(GETDATE()) +
SUBSTRING(@[User::FileName], FINDSTRING(@[User::FileName],".",1), LEN(@[User::FileName]))
Best regards,
Carrin
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.