Prevent email of empty result set

  • Does anyone know of a method of preventing a subscription sending an empty result set - it would be very nice to use subscriptions to send exception reports except that each email still needs to be checked because even reports with no content are sent.

    Thanks

  • Yes with simple subscription it will happen. You need to use data driven subscription where you can write query to find out if there is any record available to sent. It is only available in enterprise edition.

  • thanks

  • There was a nice thread on this very topic last month. Several cool approaches bobbed to the surface that are worth reading:

    http://www.sqlservercentral.com/Forums/Topic719090-150-1.aspx

    Edit: I am pointing this out in case you don't have Enterprise edition. Data driven subs are not available in Standard.

    [font="Arial"]Are you lost daddy? I asked tenderly.
    Shut up he explained.
    [/font]
    - Ring Lardner

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply