Question

Is it possible to get notifications using SQL Server Reporting Services? Say for example I have a report that I want by mail if has for example suddenly shows more than 10 rows or if a specific value drop below 100 000. Do I need to tie Notification Services into it and how do I do that?

Please provide as much technical details as possible as I've never used Notification Services before.

Someone also told me that Notifications Services is replaced by new functionality in Reporting Services in Sql Server 2008 - is this the case?

Was it helpful?

Solution

I'd agree with Simon re Notification Services

Also, data driven SSRS Subscriptions are not available unless you use Enterprise Edition (and isn't available if you use SharePoint Integrated Mode).

An alternate way would be to create an Agent job that runs a proc. The proc could check the conditions you require and kick off the subscription if they are met using:

exec ReportServer.dbo.AddEvent @EventType='TimedSubscription', @EventData='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx'

Where the @EventData is the ID of the subscription in dbo.Subscriptions.

This will drop a row in [dbo].[Event]. The Service polls this table a few times a minute to kick off subscriptions.

Really, this isn't far from what happens when you set up a new Subscription, might even be easier to create a Subscription in the Report Server site, find which agent job was created (the ones with GUID names) and edit the T-SQL.

Hope this helps

OTHER TIPS

I wouldn't go down the ntofications services route - it is pretty much a deprecated feature of SQL Server and even if it is around in future it will stagnate. So don't build a dependency on it.

Depending on your needs a data driven SSRS subscription to e-mail you the report would probably work. http://msdn.microsoft.com/en-us/library/ms159150(SQL.90).aspx

Sending mail using SSRS subscription to your data driven report

A data-driven subscription is composed of multiple parts. The fixed aspects of a data-driven subscription are defined when you create the subscription, and these include the following:

The report for which the subscription is defined (a subscription is always associated with a single report). The delivery extension used to distribute the report. You can specify report server e-mail delivery, file share delivery, the null delivery provider used for preloading the cache, or a custom delivery extension. You cannot specify multiple delivery extensions within a single subscription. The subscriber data source. You must specify a connection string to the data source that contains subscriber data when you define the subscription. The subscriber data source cannot be specified dynamically at run time. The query that you use to select subscriber data must be specified when you define the subscription. You cannot change the query at run time.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top