`sp-send-dbmail` is a built-in stored procedure available in SQL Server since 2005, which allows one to send e-mails using the SQL service, for alerting a DBA when a problem is detected or limited reporting.
I'm trying to use sp_send_dbmail to send the results of a query through a SQLAgent job in SQL …
sql-server sp-send-dbmailWe use sp_send_dbmail to notify us of certain problems and sometimes we attach files to the emails. Occasionally …
try-catch sp-send-dbmail