Solved

SSRA Subscription, Need PATH to include YEAR as parameter

Posted on 2014-12-24
4
89 Views
Last Modified: 2015-05-16
My SSRS (SQL2012) subscription copies a report to a Windows File Share and the path to that destination includes the year. (i.e. \\machinename\share\folder\2014\Folder).  

Each Year I have to change that path on Dec 31. Is there a way to have the YEAR be a parameter in the PATH dialog so it updates when needed?
Bonus points if SSRS could create the directory as needed if it didn't already exist.
0
Comment
Question by:Salad-Dodger
  • 2
  • 2
4 Comments
 
LVL 13

Accepted Solution

by:
Russell Fox earned 500 total points
ID: 40519138
Sadly, no, that's not possible in vanilla SSRS:
When defining a subscription that uses file share delivery, you must specify an existing folder as the target folder. The report server does not create folders on the file system. -MSDN - File Share Delivery
It may be possible to change the subscription with an Agent job that runs once a year, but MS has deeply obfuscated the SSRS subscription information in the ReportServer databases. You could probably accomplish this with some C# code using the ReportViewer control, but that's deep magic.
0
 
LVL 1

Author Comment

by:Salad-Dodger
ID: 40519261
Well, thats a bummer, but not unexpected.
Assuming the year path exists, what about the part where I can alter the path entry in the SSRS subscription through code? Perhaps there is some way to use the parameter from which the report is generated?
0
 
LVL 1

Author Closing Comment

by:Salad-Dodger
ID: 40741397
Sigh - -  Foiled again.
0
 
LVL 13

Expert Comment

by:Russell Fox
ID: 40780989
Sorry, didn't see you next comment. Here's an article on how to do something using SSIS: complicated, but might work. http://geekswithblogs.net/LifeLongTechie/archive/2009/11/24/calling-ssrs-report-using-either-t-sql-or-ssis.aspx
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction In the following article I’ll be discussing and demonstrating several different ways of how images can be put on a report. I’m using SQL Server Reporting Services 2008 R2 CTP, more precisely version 10.50.1352.12, but the methods ex…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question