문제

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