简体   繁体   English

具有多个数据源的SSRS订阅

[英]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. 使用SSRS的订阅功能,我可以按计划的方式自动运行报告,并发送包含报告结果的电子邮件。 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. 使用SSRS的订阅功能,我可以按计划的方式自动运行报告,并发送包含报告结果的电子邮件。 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 . 链接服务器链接1
    • Create Linked Servers Link 2 . 创建链接服务器链接2
    • Write a query that returns a single line for each source and use UNION ALL to create a single result set/'table'. 编写一个查询,为每个源返回一行,并使用UNION ALL创建单个结果集/“表”。
  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. 为包含多个数据源的新报表创建一个订阅。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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