Tôi đã cố gắng sử dụng: sp_send_dbmailGửi email SMTP trong SQL Server 2008 R2 nhanh
Nhưng tôi đã nhận lỗi sau:
Msg 15281, Level 16, State 1, Procedure sp_send_dbmail, Line 0
SQL Server blocked access to procedure 'dbo.sp_send_dbmail' of component 'Database Mail XPs' because this component is turned off as part of the security configuration for this server.
A system administrator can enable the use of 'Database Mail XPs' by using sp_configure. For more information about enabling 'Database Mail XPs', see "Surface Area Configuration" in SQL Server Books Online.
Tôi cũng cố gắng sử dụng mã này để gửi mail SMTP trong SQL Server 2008 R2 EXPRESS: http://www.freevbcode.com/ShowCode.asp?ID=6699
Nhưng tôi nhận được lỗi sau:
Msg 15281, Level 16, State 1, Procedure sp_OACreate, Line 1
SQL Server blocked access to procedure 'sys.sp_OACreate' of component 'Ole Automation Procedures' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'Ole Automation Procedures' by using sp_configure. For more information about enabling 'Ole Automation Procedures', see "Surface Area Configuration" in SQL Server Books Online.
Tôi đã đi đến "Facets" để kiểm tra các tùy chọn bảo mật ở đó, nhưng không có gì về "Surface Area Configuration"! Là nó bị thiếu bởi vì tôi đang sử dụng phiên bản Express của SQL Server 2008 R2? Hay tôi đang đi sai hướng?
Nếu bạn có bất kỳ mã/đề xuất nào tốt hơn để gửi thư trong SQL Server 2008, vui lòng cho tôi biết. Cảm ơn!
Làm việc một điều trị. Đẹp nhất! – paulH
Tôi không cần phải khởi động lại sau khi thiết lập DataBaseMailEnabled = true – sreimer
Làm việc cho tôi với SQL Express Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) –