简体   繁体   English

报告的SSRS快照

[英]SSRS snapshot of a report

是否可以创建报告并将其每月一次保存到.pdf或excel中,并通过电子邮件将其作为快照发送给人员列表,是否可以在快速版中完成?

As Diego says, you are describing SSRS subscriptions . 正如Diego所说,您正在描述SSRS订阅

Data Driven subscriptions are only available with SQL Server Enterprise edition, and Express does not support any subscriptions: 数据驱动订阅仅适用于SQL Server Enterprise版,而Express不支持任何订阅:

  • All reports are processed on demand. 所有报告均按需处理。 Scheduled or unattended report processing is not supported. 不支持计划或无人参与的报告处理。

If you need to use Express edition, then you'll need to build your own solution. 如果您需要使用Express Edition,则需要构建自己的解决方案。 But that would probably justify the cost of a standard Sql Server license. 但这可能证明标准Sql Server许可证的成本合理。

what you want is a subscription (probably a Data-Driven Subscription). 您需要的是一个订阅(可能是一个数据驱动的订阅)。 A subscription can deliver a report at a specific time or in response to an event. 订阅可以在特定时间或响应事件传递报告。

To do that you will need to use stored credentials or no credentials (Windows Authentication is not applicable) because the subscription will run as a background process. 为此,您将需要使用存储的凭据或不使用凭据(Windows身份验证不适用),因为订阅将作为后台进程运行。

A snapshot is one of the 3 ways of running a report (other than "on demand" and "on demand from cache") 快照是运行报告的三种方式之一(“按需”和“按需来自缓存”除外)

I realize it is the poor man's solution, but if you are limited to SSRS Express Edition, you can set up a scheduled job (via cron, SQL Server Agent, Scheduled Tasks, etc.) that simply emails out a URL link to the report with various parameters set (or to a snapshot version if applicable) that people can then click on and go to the Report Manager and view. 我知道这是穷人的解决方案,但是如果您仅限于SSRS Express Edition,则可以设置计划的工作(通过cron,SQL Server Agent,计划的任务等),只需通过电子邮件将报告的URL链接发送出去设置了各种参数(如果适用,则设置为快照版本),然后人们可以单击并转到报表管理器并进行查看。

In a way, this can actually be an elegant solution when your reports require Windows Authentication to filter datasets (for example, when accessing a SSAS cube-based dataset) and it's not secure to have the report run with a stored credential. 从某种意义上说,当您的报表需要Windows身份验证来筛选数据集时(例如,在访问基于SSAS多维数据集的数据集时),并且使用存储的凭据运行报表并不安全时,这实际上是一个不错的解决方案。

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

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