Crea

Who is online?  0 guests and 0 members
Home  »  Articles  »  Creating a Reporting Services Subscription

Creating a Reporting Services Subscription

change text size: A A A
Published: 12/22/2009 by  DevinKnight  - Views:  [1384]  

Subscriptions are a great feature in Reporting Services that will run a report unattended and deliver it to users either by email or Windows File Share.  Subscriptions can also be scheduled so if your end users need a report monthly you can automate the delivery process.  The steps given in this article will show you how to configure subscriptions using the Windows File Share delivery method.

Before you start to configure your first subscription make sure to have the following taken care of first:

Start the SQL Server Agent

When you installed Reporting Services it also created the ReportServer database.  This database stores all subscription related data among other things.  Ensure the SQL Server Agent is running on the database engine that has the ReportServer database. 

To start the SQL Server Agent you can either login to the database engine in SQL Server Management Studio or open the SQL Server Configuration Manager then right-click and select start on the SQL Server Agent.

SQL Server Configuration Manager

SQL Server Management Studio

Enabling sharing on folder delivering to

If you have decided to deliver reports via Windows File Share then you must configure the folder that will accept the reports for sharing.  Navigate to the folder that you want to be used with the Subscription and right-click on it then select Properties.  Go to the Sharing property tab to enable sharing. 

 

 

Use SQL Server Authentication on data sources used in report

To enable Subscriptions on a report you must have a SQL Server Authenticated account used to access the data sources.  In SQL Server Management Studio, create a new SQL login that has db_datareader access to the databases used in the report data sources. 

 

 After you have created this account change the report data sources to make sure it is being used in the Report Manager.

                Now that these prerequisites have been taken care you can actually create a new Subscription.  Click on the report that you want to add a Subscription to and click New Subscription in the report toolbar.  If you do not see the New Subscription option you may need to have your privileges elevated.

There are several options you have when creating a Subscription:

Delivered by – Can either be Windows File Share or Email.  If you have not setup your SMTP server to send email then your only option is Window File Share.  The SMTP configuration is setup in the Reporting Services Configuration Manager.

File Name – What you want the file that is created to be called.  Also, there is a checkbox for “Add a file extension when the file is created” which is checked by default.  There may be some special circumstances where you do not want the file extension, like your work email does not accept attachments with an .xml extension.

Path – The file path where the file should be sent to.  It must be written as the full UNC path (\\ServerName\FolderName).  For example, my path would be \\Devin-PC\Reports.

Render Format – How you want the format to be rendered.  Your options are XML file with report data, CSV (comma delimited), Acrobat (PDF) file, HTML 4.0, MHTML (web archive), Excel, RPL renderer, TIFF file, or Word.

Credentials used to access the file share – This must be a login that you setup to have access the file share in the eariler prerequisites.

Overwrite options – Overwrite an existing file with a newer version is set by default and will always replace a file if they are named the same.  Do not overwrite the file if a previous version exists will keep the original file and cause the subscription to fail.  Increment file names as newer versions are added will continue to add a new file if one already exists with the same name but will increment it (ReportName_1.pdf, ReportName_2.pdf, ReportName_3.pdf).

 

 You can also click Select Schedule to design a set time for the Subsciption to run.  You can also configure when you want the schedule to start and how long it should continue.  Once you have set the schedule you want click OK.

 

This will return you to the previous screen where can lastly decide to pass in different values to the report parameters before you finalize the Subsciption by clicking OK. 

On the Subscription tab of the report you should see listed all the Subscriptions that have been created for this report.

 

When the Subscription runs you should see the file now in your shared folder.  If you open Management Studio and take a look at the SQL Agent jobs you will see there is a new one for the Subscription you created.  Here you can run the Subscription manually so you do not have to wait for the scheduled time. 

WARNING:  Do not change any settings of this job.  Even just changing the name could cause the Subscription to fail. 

 
0
/5
Avg: 0/5: (0 votes)

Comments (5)

deentech23
deentech23 said:
Is there a way to tell which subscription job is which in the job agent? There's about 50 in our system and I need to identify mine so I could run them as a job again if they fail or if the data that is used for the reports was not updated
3/30/2010
 · 
 
by
DevinKnight
DevinKnight said:
Sure, you can run this query on the ReportServer database... SELECT R.ScheduleID ,Description FROM Subscriptions S join ReportSchedule R on R.SubscriptionID=S.SubscriptionID
3/31/2010
 · 
 
by
reddysatty
reddysatty said:
Good Day Devin, you impressed me alot with your clear,detailed,and step-by-step post.Many thanks for your article, it is simply the best.The images and the detail explanation is awesome.I am very new to this website and MSBI as well.I am in learning stage now, please keep on post the basic and important articles,you would be much appreciated Devin.I am eagerly looking for "SSRS Administration" articles, now i got "Standard Subscription", can you please post remaining articles like " Data-Driven Subscription", "Events",etc... ( I don't know administration concepts), once again many thanks Devin.Regards...Reddy
5/6/2010
 · 
 
by
DevinKnight
DevinKnight said:
Sounds like a great idea for a new article! If you would like to see this in video format and other BI videos go to SQLShare.com. I have a recording there of me walking through the steps detailed above.
5/6/2010
 · 
 
by
vinay
vinay said:
Devin Thanks you very much for this post. I have a query like I have creared Schedule datadriven subscription to create PDF s with differnt subjects and Pdf are creating no problem, but the thing is can change the status in my application after creating each PDF in folder... Could you please help on this .... Thanks , Vinay.
9/15/2011
 · 
 
by
DevinKnight
DevinKnight said:
I'm not sure i understand. You want to change the status in another application after the PDFs have been delievered to a folder? Sounds like that would have to be done with SSIS.
9/15/2011
 · 
 
by

Most Recent Articles