ssis - how to generate excel attach the date to filename <<filename_yyyymmdd.xlsx>>

nononame2021 256 Reputation points
2022-06-27T09:33:29.21+00:00

how can i generate a excel file with date in filename (e.g. filename_yyyymmdd.xlsx)

or how to make the output expression by getdate() to yyyymmdd ?

any sample to reference.

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,579 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. ZoeHui-MSFT 36,666 Reputation points
    2022-06-27T09:40:12.02+00:00

    Hi @nononame2021 ,

    You may refer to 0395-sql-server-ssis-adding-date-and-time-to-a-file-name-after-processing.

    It's detailed tutorial, you may follow it step by step.

    Regards,

    Zoe


    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.


  2. ZoeHui-MSFT 36,666 Reputation points
    2022-06-28T01:46:27.35+00:00

    Hi @nononame2021 ,

    You cannot directly change the file name with excel destination.

    You need to use file system task to copy template file from template folder to destination folder and then change the file name.

    Check ssis-tutorial-part-17-create-excel-file.html.

    Regards,

    Zoe


    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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.