Our dbmail got hosed and I'm trying to resolve the issue.
I've recently recreated sp_send_dbmail, but am not getting an odd error regarding a null value in last_mod_user column in table msdb.dbo.sysmail_mailitems (error 515)
Our dbmail got hosed and I'm trying to resolve the issue.
I've recently recreated sp_send_dbmail, but am not getting an odd error regarding a null value in last_mod_user column in table msdb.dbo.sysmail_mailitems (error 515)
On
Here's my msdb's [sp_send_dbmail] stored proc on PasteBin. Taken from SQL Server 2008 SP1.
The INSERT statement curiously doesn't include a value for last_mod_user! Line 364 on PasteBin.
Your error sounds correct; the field last_mod_user is defined as non nullable.

last_mod_userinmsdb.dbo.sysmail_mailitemsshould have a default defined on it. Has that gone missing on your install?