Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Possible to prevent sp_send_dbmail from triggering too many emails ?

$
0
0

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



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>