-1

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

user2368632
  • 1,133
  • 1
  • 15
  • 33

1 Answers1

5

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

Tibor Karaszi
  • 18,269
  • 2
  • 17
  • 30