Last active
November 25, 2015 20:45
-
-
Save tkMageztik/7eea44a44e09677bcb94 to your computer and use it in GitHub Desktop.
importante_sobre_mail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ACTIVA EL MOSTRAR OPCIONES AVANZADAS EN SP_CONFIGURE | |
sp_configure 'show advanced', 1; | |
GO | |
-- COMO UN COMMIT PARA EL SCRIPT ANTERIOR | |
RECONFIGURE; | |
GO | |
-- MUESTRA LAS OPCIONES DE SP_CONFIGURE | |
sp_configure; | |
GO | |
-- MUESTRA EL ESTADO DEL MAIL SERVER DE SQL POR DECIRLO ASÍ | |
EXEC msdb.dbo.sysmail_help_status_sp; | |
-- ACTIVA EL DATABASE MAIL, SIEMPRE Y CUANDO 'Database Mail XPs' esté en 1 | |
EXEC msdb.dbo.sysmail_start_sp; | |
-- DETIENE EL DATABASE MAIL, SIEMPRE Y CUANDO 'Database Mail XPs' esté en 1 | |
EXEC msdb.dbo.sysmail_stop_sp ; | |
-- ACTIVA EL DATABASE MAIL, SIN ESTO NINGUNA CONSULTA DE ESTADO O INICIO DE SERVICIO DE CORREO FUNCIONA, | |
-- ES COMO UN INICIO DE SERVICIO GLOBAL | |
sp_configure 'Database Mail XPs', 1; | |
GO | |
RECONFIGURE; | |
GO | |
-- PARA ENVIAR CORREOS EL USUARIO DEBE TENER ESTE ROL POR LO MENOS O SER UN OWNER DE MSDB O SYSADMIN | |
EXEC msdb.sys.sp_helprolemember 'DatabaseMailUserRole'; | |
-- MUESTRA LOS USUARIOS QUE TIENE ACCESO A LOS PROFILES, SIN EMBARGO NO MUESTRAN CIERTOS PROFILES | |
-- QUE SON PUBLICOS AL PARECER. | |
EXEC msdb.dbo.sysmail_help_principalprofile_sp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment