How to report on how many emails have been sent by sql server for a given period of time?

dba.stackexchange https://dba.stackexchange.com/questions/276362

سؤال

Is there a good way to determine how many emails have been sent by sql server (sql notifications + invocations of sp_send_dbmail by applications) for a given period of time? Need this info for billing discussions.

SQL Server 2014

لا يوجد حل صحيح

نصائح أخرى

You can query the dbo.sysmail_mailitems table in the msdb database. This is the log table for sp_send_dbmail. Documentated here.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى dba.stackexchange
scroll top