Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Learn about how you create a data-driven subscription by using the SQL Server Report Service (SSRS) tutorial. The tutorial walks you through a simple example that creates a data-driven subscription to generate and save filtered report output to a shared file.
Reporting Services data-driven subscriptions allow you to customize and automate the distribution of a report based on dynamic subscriber data. Use data-driven subscriptions in the following scenarios:
.xlsx
and .pdf
.Report server administrators typically create and maintain data-driven subscriptions. The steps to create data-driven subscriptions require building queries, knowledge of data sources that contain subscriber data, and elevated permissions on a report server.
The tutorial uses the Sales order report created in the tutorial Create a basic table report (SSRS tutorial) and data from the sample database AdventureWorks2022.
Your computer must have the following installed to use this tutorial:
An edition of SQL Server that supports data-driven subscriptions. For more information, see Editions and supported features of SQL Server 2022.
Run the Report Server in native mode. The user interface described in the tutorial is based on a native mode report server. Subscriptions are supported on SharePoint mode report servers but the user interface is different than what is described in the tutorial.
SQL Server Agent service.
A Reporting Services role assignment that includes the Manage all subscriptions task on the sample report. This task defines a data-driven subscription. If you're an administrator on the computer, the default role assignment for local administrators provides the permissions necessary for creating data-driven subscriptions. For more information, see Grant permissions on a native mode report server.
Write permissions to a shared folder that’s accessible over a network connection.
Estimated time to complete the tutorial: 30 minutes. An extra 30 minutes if you need to complete the basic report tutorial.
The tutorial is divided into three lessons:
Lesson | Description |
---|---|
Lesson 1: Create a sample subscriber database | Create a table in the local SQL Server database that contains subscriber information. This information includes the order numbers to use for filtering and output file formats. |
Lesson 2: Configure report data source properties | Configure a report data source to run a report unattended and on a schedule. Modify the report dataset to include a parameter supplied by the subscriber data. |
Lesson 3: Define a data-driven subscription | Create a data-driven subscription by using the Data-Driven Subscription Wizard. |
The following diagram illustrates the basic workflow of the process:
Step | Description |
---|---|
(1) | The subscription configuration sets the source report, schedule, and the field mapping to the subscribers Database. |
(2) | The OrderInfo table contains four order numbers to use for filtering, 1 per file. The table also contains the file formats for the generated reports. |
(3) | Information from the AdventureWorks2022 database is filtered and returned in the report. |
(4) | Reports created in the file formats specified by the OrderInfo table. |
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Module
Create and share your first Power BI report - Training
With Power BI, you can create compelling visuals and reports. In this module, you learn how to use Power BI Desktop to connect to data, build visuals, and create a report that you can share with others in your organization. You then learn how to publish the report to the Power BI service, so that others can see your insights and benefit from your work.
Certification
Microsoft Certified: Azure Database Administrator Associate - Certifications
Administer an SQL Server database infrastructure for cloud, on-premises and hybrid relational databases using the Microsoft PaaS relational database offerings.