sp_configure 'allow updates' ,0;
reconfigure with override;
from here
和answer
----首先在脚本
下面运行
EXEC sp_configure 'Show Advanced Options', 1
RECONFIGURE WITH OVERRIDE
go
------ then run below script
EXEC sp_configure ‘Database Mail XPs’,1
GO
RECONFIGURE WITH OVERRIDE
GO