简体   繁体   中英

SSRS Subscription with Multiple Data Sources

Using the subscription functionality of SSRS, I have automatically run reports in a scheduled manner and sent out e-mails with the results of the report. I have only done this using a single data source. My question is, can I do this while using multiple data sources?

My goal is to just run the same report across a collection of data sources, and then have all of the results from each data source get sent out in one e-mail as a subscription.

In my specific case, I just need a single row for each data source. My intent would be to form a table, with one row articulated for each data source.

Using the subscription functionality of SSRS, I have automatically run reports in a scheduled manner and sent out e-mails with the results of the report. I have only done this using a single data source. My question is, can I do this while using multiple data sources?

This isn't clear because a single report can only be matched to a single subscription.

My goal is to just run the same report across a collection of data sources, and then have all of the results from each data source get sent out in one e-mail as a subscription.

Do this in a single report that uses multiple data sources.

In my specific case, I just need a single row for each data source. My intent would be to form a table, with one row articulated for each data source.

Sounds like you have two options here:

  1. Use Linked Servers:
    • Linking Servers Link 1 .
    • Create Linked Servers Link 2 .
    • Write a query that returns a single line for each source and use UNION ALL to create a single result set/'table'.
  2. Create a report that uses the multiple data sources.
    • Have a single row table for each source and then arrange the tables to look like a single one when rendered.

Create a single subscription for your new report that combines multiple data sources.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM