Quantcast
Viewing all articles
Browse latest Browse all 23857

Possible to prevent sp_send_dbmail from triggering too many emails ?

Hi,

One fine day, I accidentally executed a TSQL that had infinite loop and each loop triggered an email using sp_send_dbmail. As a result, 16K emails jammed my email account. I was wondering if there's a trap at the SQL Server engine that can trap this. Or some sort f mail queue monitoring ?

Any insight ? TIA !


Viewing all articles
Browse latest Browse all 23857

Trending Articles