2011-02-16 32 views

回答

2

last_mod_usermsdb.dbo.sysmail_mailitems上應該有定義的默認值。你的安裝失蹤了嗎?

ALTER TABLE [dbo].[sysmail_mailitems] ADD DEFAULT (suser_sname()) FOR [last_mod_user] 
1

這裏是我的msdb's [sp_send_dbmail] stored proc on PasteBin。取自SQL Server 2008 SP1。

INSERT聲明好奇地不包含last_mod_user的值! PasteBin上的第364行。

您的錯誤聽起來沒錯;字段last_mod_user被定義爲不可空。

enter image description here