I have a SQL stored procedure that looks for leavers accounts each day, most days this doesn't return any results but wondering whether it is possible to use exec msdb.dbo.sp_send_dbmail to send the results of the stored procedure as an email but to only send the results when there are some, so that I'm not sending a blank email most days.
↧