all groups > sql server reporting services > october 2005 >
You're in the

sql server reporting services

group:

Subscription suppression if no data


Subscription suppression if no data William
10/18/2005 11:34:04 AM
sql server reporting services:
Is there a way to suppress the execution of an email if a subscription runs a
report that returns no data?

RE: Subscription suppression if no data ReneMo
11/3/2005 2:27:05 AM
A way to suppress the subscription is to change your stored procedure so it
returns nothing at all when there is no data. This makes your report going
into error state and suppresses the execution of the subscription.

A disadvantage is that you get the anoying message "Invalid attempt to read
when no data is present".

I 'm also looking for a better solution or a way to customize this error
message.

[quoted text, click to view]
RE: Subscription suppression if no data William
11/4/2005 9:12:03 AM
Thanks for the insight, but I have a SP that returns no data. The
subscription generates an email with results included, rendered in Excel
format. The spreadsheet has a header line, but no data. Do I need to suppress
the header to get the report to fail as you mentioned?

[quoted text, click to view]
AddThis Social Bookmark Button