Intenté usar: sp_send_dbmailEl envío de correo SMTP en SQL Server 2008 R2 expreso
pero me dio el siguiente error:
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.
También traté de usar este código para enviar correo SMTP en SQL Server 2008 R2 EXPRESS: http://www.freevbcode.com/ShowCode.asp?ID=6699
Pero estoy consiguiendo el error siguiente:
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.
Fui a las "facetas" para verificar las opciones de seguridad allí, ¡pero no hay nada sobre "Configuración de área de superficie"! ¿Falta porque estoy usando la versión Express de SQL Server 2008 R2? ¿O voy en la dirección incorrecta?
Si tiene algún código/sugerencia mejor para enviar correo en SQL Server 2008, por favor hágamelo saber. ¡Gracias!
funcionaba un lujo. ¡Buena esa! – paulH
No necesité reiniciar después de configurar DataBaseMailEnabled = true – sreimer
Funcionó para mí con SQL Express Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) –