Question : SQL Server Agent sp_send_dbmail sending duplicate emails

I have a stored procedure that executes sp_send_dbmail to a variety of recipients.  It is scheduled to run at 7:00 AM and it successfully emails the text.  However, it duplicates the email and sends it EXACTLY 1 minute later.  The text in the email comes from a stored procedure but this stored procedure only runs a SELECT query.

Can someone help me figure out why this is duplicating the emails?

Answer : SQL Server Agent sp_send_dbmail sending duplicate emails

Have you got retry count on step in SQL Agent (Retry Attempts in Advanced Tab) set at 1 with 1 minute interval.

This would resend email if an error occured in SQL sp that calls sp_send_dbmail first email send. If any of recipients fail then this could cause error in sp.  
Random Solutions  
 
programming4us programming4us