Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SSRS Save file to folder (Windows File Share) with date as prefix to filename Expand / Collapse
Author
Message
Posted Thursday, May 24, 2012 9:42 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, August 26, 2013 9:58 AM
Points: 19, Visits: 71
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
Post #1305970
Posted Friday, June 1, 2012 12:14 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, July 5, 2012 5:08 AM
Points: 2, Visits: 4
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];
Post #1309498
Posted Monday, October 29, 2012 10:11 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, August 26, 2013 9:58 AM
Points: 19, Visits: 71
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.
Post #1378330
Posted Monday, December 3, 2012 11:10 AM
SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Yesterday @ 6:54 AM
Points: 474, Visits: 208
What did you do? We are working on getting the enterprise edition setup, but in the meantime, we do not have data driven subscriptions
Post #1392081
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse