SSRS Save file to folder (Windows File Share) with date as prefix to filename

  • Hello -

    I am creating several reports. Each report runs daily and a team uses each of the reports on a daily basis. I would like to make it easy for the team to come in each day and print all the reports. I have two ideas:

    Idea 1:

    Each date, all the reports will print to a folder with the date as the folder name (in YYYYMMDD format so that it can be sorted easily). So, I would have a Parent folder and subfolders with names like: 20120520, 20120521, 20120522, etc. Each day a new folder would be created and the reports would go into that folder.

    Idea 2:

    If Idea 1 is not possible with SSRS, then I would print all reports to one folder, but I would want to put the date at the beginning of the file name in the YYYYMMDD format. This way when they are sorted, all of the reports for the day are sorted together and the users do not have to hunt and scroll for reports.

    Is this possible with SSRS?

    Thank you.

    Tammy

  • You can try using Data Driven subscription for 'Windows File Share'. Create your SQL query for FileName field with appended date and use that field to specify the filename for your drop file.

    For e.g.

    SELECT CONVERT(VARCHAR(8), GETDATE(), 112) + '_YourFileName' AS [FileName];

  • Thank you. That will work for me. I had done something different in the meantime. I will probably implement this idea when I have time again. But your reply does answer my question. Thank you, again.

  • What did you do? We are working on getting the enterprise edition setup, but in the meantime, we do not have data driven subscriptions :ermm:

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply