سؤال

I have a susbcription in SSRS2008 that sends an email with a xls file, is there any way I can "cancel" the mail if the query result of my report is empty?

Thanks in advance!

هل كانت مفيدة؟

المحلول

Use a data driven subscription. Populate the "TO" field using a query; have the query test to see if the data exists, if so, return the "TO" string. Otherwise, return NULL. The subscription will error out and not send anything when there's no data.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top