SlideShare una empresa de Scribd logo
1 de 8
Descargar para leer sin conexión
SQL Server Reporting Services subscriptions are an easy way to automatically run and deliver SSRS reports. You can
schedule reports to run at a regular interval and deliver to file share, e-mail, or a SharePoint document library (if you’re
using SharePoint integration mode).



HOW IT’S DONE:
Here is my SSRS 2008 R2 instance, with a couple of prepared reports:




I’m going to create a subscription for SSRS_example_multivalue, which has a parameter with multiple values to select
from.



STOP!
Before you run away with the subscription, you need to make sure that SQL Server Agent is running. C hances are your
SQL Server Agent isn’t running, so you won’t be able to run any subscriptions. You can start SQL Server Agent through
SQL Server C onfiguration Manager:




Microsoft has steps on how to start SQL Server Agent if you’re curious.



STARTING ON THE SUBSCRIPTION
Right-click on the report that you want to add the subscription to. Select Manage.
Next, go to Subscriptions. When the subscription list loads, if the button to add a New Subscription has a warning icon,
you won’t be able to add a subscription just yet.




Regular reports that use databases for the data sources need to have the credentials stored with the report. You will get
an error message if you try to add a subscription. So let’s see how to fix that issue.



MODIFYING THE DATA SOURCE
Go to Data Sources.


In my example, I’m using the AdventureWorks database, which is normally configured to use Windows integrated security.
I’m going to switch to Credentials stored securely in the report server:
After adding the credentials, make sure to test your connection. I had to check-off Use as Windows credentials when
connecting to the data source, but then I was able to connect to the database.




C lick Apply when you’re done.



GOING BACK TO THE SUBSCRIPTION
Now New Subscription should be free of the warning icon.




You may notice that there are two types of subscriptions.
Data-drive subscriptions are available in the Evaluation, Developer, or Enterprise editions of SSRS. They provide
more dynamic functionality at run time, such as picking the report recipients based on a query. Jes Borland (@grrl_geek)
breaks down how to do data-driven subscriptions to a file share and e-mail in a couple of blog posts.


For this example, I will focus on regular subscriptions.


C lick New Subscription. You will be directed to the Report Delivery Options form.




DELIVERY METHOD
The first thing is to select the delivery method. If you are using SSRS in native mode, you can deliver to a file share or an
e-mail account. You should note that e-mail delivery requires additional configuration. For simplicity, I’ll use the file share
for my example.


Select Windows File Share and specify the path to the shared folder.
It is important to note that the account that is running the report (see below) has WRITE permissions to the shared folder.



RENDER FORMAT
All the rendering extensions from the SSRS installation are available as export options. For this particular report, I’m going
to export to XLS using SSRS’ native Excel export option.




Subscriptions also work with OfficeWriter‘s Excel and Word export options. I’ll briefly cover that later.



CREDENTIALS AND OUTPUT OPTIONS
As mentioned above, the account running the report must have WRITE permissions in the shared folder. Additionally, there
are some options for writing out the reports. I opted to have unique numbers appended to the reports, to avoid
overwriting existing files.




SUBSCRIPTION SCHEDULE
To specify the subscription schedule, click Select Schedule under Subscription Processing Options.
For this example, I created a schedule that runs the report every 2 minutes starting about 10 minutes from the time I
created the subscription. Realistically, you would want to schedule the report to run once a week or month etc.




REPORT PARAMETER VALUES
Because this isn’t a data-driven subscription, I have to hard-code which values to use when running the report.
C lick OK when you’re done.



CONGRATS! YOU’RE DONE!
You should see your new subscription in the subscription list:




SUBSCRIPT IONS WIT H OFFICE WRIT E R

You can also create subscriptions with the OfficeWriter renderers for Excel and Word. When setting up the subscription,
just select Excel designed by OfficeWriter or Word designed by OfficeWriter.




SUCCE SS:
I also created a subscription that uses the OfficeWriter for Excel renderer (ExcelWriter_SSRS_example.xlsx). Now go
automate those reports.

Más contenido relacionado

Similar a Automating reports with ssrs subscriptions

How to Cure SharePoint Headaches with GSX - Monitor, Measure, Manage - From A...
How to Cure SharePoint Headaches with GSX - Monitor, Measure, Manage - From A...How to Cure SharePoint Headaches with GSX - Monitor, Measure, Manage - From A...
How to Cure SharePoint Headaches with GSX - Monitor, Measure, Manage - From A...
David J Rosenthal
 
Cxo cockpit customer newsletter - march 2013
Cxo cockpit customer newsletter - march 2013Cxo cockpit customer newsletter - march 2013
Cxo cockpit customer newsletter - march 2013
Richard Wolters
 
Cxo cockpit customer newsletter - march 2013
Cxo cockpit customer newsletter - march 2013Cxo cockpit customer newsletter - march 2013
Cxo cockpit customer newsletter - march 2013
Richard Wolters
 
Microsoft Dynamics CRM SSRS REPORTS
Microsoft Dynamics CRM SSRS REPORTS Microsoft Dynamics CRM SSRS REPORTS
Microsoft Dynamics CRM SSRS REPORTS
Naveen Kumar
 
SQL Server Reporting Services
SQL Server Reporting ServicesSQL Server Reporting Services
SQL Server Reporting Services
Ahmed Elbaz
 
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Ahmed Farag
 
GWSSB Scheme Tracking System
GWSSB Scheme Tracking SystemGWSSB Scheme Tracking System
GWSSB Scheme Tracking System
Divyen Patel
 
Orcl Crmod Vs Sfdc Reporting And Analytics
Orcl Crmod Vs Sfdc Reporting And AnalyticsOrcl Crmod Vs Sfdc Reporting And Analytics
Orcl Crmod Vs Sfdc Reporting And Analytics
Shane_Boyd
 
Analytics: CRM On Demand vs SFDC
Analytics: CRM On Demand vs SFDCAnalytics: CRM On Demand vs SFDC
Analytics: CRM On Demand vs SFDC
lnbeck
 

Similar a Automating reports with ssrs subscriptions (20)

Agile Methodology Approach to SSRS Reporting
Agile Methodology Approach to SSRS ReportingAgile Methodology Approach to SSRS Reporting
Agile Methodology Approach to SSRS Reporting
 
159 200523 Google Analytics For Beginners
159 200523 Google Analytics For Beginners159 200523 Google Analytics For Beginners
159 200523 Google Analytics For Beginners
 
Ssrs 2008 R2 webinar
Ssrs 2008 R2   webinarSsrs 2008 R2   webinar
Ssrs 2008 R2 webinar
 
How to Cure SharePoint Headaches with GSX - Monitor, Measure, Manage - From A...
How to Cure SharePoint Headaches with GSX - Monitor, Measure, Manage - From A...How to Cure SharePoint Headaches with GSX - Monitor, Measure, Manage - From A...
How to Cure SharePoint Headaches with GSX - Monitor, Measure, Manage - From A...
 
Cxo cockpit customer newsletter - march 2013
Cxo cockpit customer newsletter - march 2013Cxo cockpit customer newsletter - march 2013
Cxo cockpit customer newsletter - march 2013
 
Cxo cockpit customer newsletter - march 2013
Cxo cockpit customer newsletter - march 2013Cxo cockpit customer newsletter - march 2013
Cxo cockpit customer newsletter - march 2013
 
5 Things to Do After Installing vTiger 6
5 Things to Do After Installing vTiger 65 Things to Do After Installing vTiger 6
5 Things to Do After Installing vTiger 6
 
SharePoint Saturday Columbus,Ohio Tony Maddin SharePoint Diagnostic Studio 3.0
SharePoint Saturday Columbus,Ohio Tony Maddin SharePoint Diagnostic Studio 3.0SharePoint Saturday Columbus,Ohio Tony Maddin SharePoint Diagnostic Studio 3.0
SharePoint Saturday Columbus,Ohio Tony Maddin SharePoint Diagnostic Studio 3.0
 
Microsoft SQL Azure - Developing And Deploying With SQL Azure Whitepaper
Microsoft SQL Azure - Developing And Deploying With SQL Azure WhitepaperMicrosoft SQL Azure - Developing And Deploying With SQL Azure Whitepaper
Microsoft SQL Azure - Developing And Deploying With SQL Azure Whitepaper
 
Microsoft Dynamics CRM SSRS REPORTS
Microsoft Dynamics CRM SSRS REPORTS Microsoft Dynamics CRM SSRS REPORTS
Microsoft Dynamics CRM SSRS REPORTS
 
SQL Server Reporting Services
SQL Server Reporting ServicesSQL Server Reporting Services
SQL Server Reporting Services
 
Using QLIK with AWS & Python
Using QLIK with AWS & PythonUsing QLIK with AWS & Python
Using QLIK with AWS & Python
 
Sql server lesson2
Sql server lesson2Sql server lesson2
Sql server lesson2
 
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
Developing ssrs-reports-for-dynamics-ax-120402001948-phpapp01
 
How to use Power Pivot in Excel
How to use Power Pivot in ExcelHow to use Power Pivot in Excel
How to use Power Pivot in Excel
 
Sql business intelligence
Sql business intelligenceSql business intelligence
Sql business intelligence
 
GWSSB Scheme Tracking System
GWSSB Scheme Tracking SystemGWSSB Scheme Tracking System
GWSSB Scheme Tracking System
 
Orcl Crmod Vs Sfdc Reporting And Analytics
Orcl Crmod Vs Sfdc Reporting And AnalyticsOrcl Crmod Vs Sfdc Reporting And Analytics
Orcl Crmod Vs Sfdc Reporting And Analytics
 
Analytics: CRM On Demand vs SFDC
Analytics: CRM On Demand vs SFDCAnalytics: CRM On Demand vs SFDC
Analytics: CRM On Demand vs SFDC
 
Top 3 Capabilities Of Salesforce Analytics Cloud
Top 3 Capabilities Of Salesforce Analytics CloudTop 3 Capabilities Of Salesforce Analytics Cloud
Top 3 Capabilities Of Salesforce Analytics Cloud
 

Último

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Último (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 

Automating reports with ssrs subscriptions

  • 1. SQL Server Reporting Services subscriptions are an easy way to automatically run and deliver SSRS reports. You can schedule reports to run at a regular interval and deliver to file share, e-mail, or a SharePoint document library (if you’re using SharePoint integration mode). HOW IT’S DONE: Here is my SSRS 2008 R2 instance, with a couple of prepared reports: I’m going to create a subscription for SSRS_example_multivalue, which has a parameter with multiple values to select from. STOP! Before you run away with the subscription, you need to make sure that SQL Server Agent is running. C hances are your SQL Server Agent isn’t running, so you won’t be able to run any subscriptions. You can start SQL Server Agent through SQL Server C onfiguration Manager: Microsoft has steps on how to start SQL Server Agent if you’re curious. STARTING ON THE SUBSCRIPTION Right-click on the report that you want to add the subscription to. Select Manage.
  • 2. Next, go to Subscriptions. When the subscription list loads, if the button to add a New Subscription has a warning icon, you won’t be able to add a subscription just yet. Regular reports that use databases for the data sources need to have the credentials stored with the report. You will get an error message if you try to add a subscription. So let’s see how to fix that issue. MODIFYING THE DATA SOURCE Go to Data Sources. In my example, I’m using the AdventureWorks database, which is normally configured to use Windows integrated security. I’m going to switch to Credentials stored securely in the report server:
  • 3. After adding the credentials, make sure to test your connection. I had to check-off Use as Windows credentials when connecting to the data source, but then I was able to connect to the database. C lick Apply when you’re done. GOING BACK TO THE SUBSCRIPTION Now New Subscription should be free of the warning icon. You may notice that there are two types of subscriptions.
  • 4. Data-drive subscriptions are available in the Evaluation, Developer, or Enterprise editions of SSRS. They provide more dynamic functionality at run time, such as picking the report recipients based on a query. Jes Borland (@grrl_geek) breaks down how to do data-driven subscriptions to a file share and e-mail in a couple of blog posts. For this example, I will focus on regular subscriptions. C lick New Subscription. You will be directed to the Report Delivery Options form. DELIVERY METHOD The first thing is to select the delivery method. If you are using SSRS in native mode, you can deliver to a file share or an e-mail account. You should note that e-mail delivery requires additional configuration. For simplicity, I’ll use the file share for my example. Select Windows File Share and specify the path to the shared folder.
  • 5. It is important to note that the account that is running the report (see below) has WRITE permissions to the shared folder. RENDER FORMAT All the rendering extensions from the SSRS installation are available as export options. For this particular report, I’m going to export to XLS using SSRS’ native Excel export option. Subscriptions also work with OfficeWriter‘s Excel and Word export options. I’ll briefly cover that later. CREDENTIALS AND OUTPUT OPTIONS As mentioned above, the account running the report must have WRITE permissions in the shared folder. Additionally, there are some options for writing out the reports. I opted to have unique numbers appended to the reports, to avoid overwriting existing files. SUBSCRIPTION SCHEDULE To specify the subscription schedule, click Select Schedule under Subscription Processing Options.
  • 6. For this example, I created a schedule that runs the report every 2 minutes starting about 10 minutes from the time I created the subscription. Realistically, you would want to schedule the report to run once a week or month etc. REPORT PARAMETER VALUES Because this isn’t a data-driven subscription, I have to hard-code which values to use when running the report.
  • 7. C lick OK when you’re done. CONGRATS! YOU’RE DONE! You should see your new subscription in the subscription list: SUBSCRIPT IONS WIT H OFFICE WRIT E R You can also create subscriptions with the OfficeWriter renderers for Excel and Word. When setting up the subscription, just select Excel designed by OfficeWriter or Word designed by OfficeWriter. SUCCE SS:
  • 8. I also created a subscription that uses the OfficeWriter for Excel renderer (ExcelWriter_SSRS_example.xlsx). Now go automate those reports.