Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


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


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

Author
Message
tammyf
tammyf
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
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
Rajni
Rajni
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
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];
tammyf
tammyf
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
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.
kevin.unglesbee
kevin.unglesbee
SSC-Addicted
SSC-Addicted (474 reputation)SSC-Addicted (474 reputation)SSC-Addicted (474 reputation)SSC-Addicted (474 reputation)SSC-Addicted (474 reputation)SSC-Addicted (474 reputation)SSC-Addicted (474 reputation)SSC-Addicted (474 reputation)

Group: General Forum Members
Points: 474 Visits: 242
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search