Академический Документы
Профессиональный Документы
Культура Документы
As an alternative to enabling Database Mail, you can execute T-SQL code, or more specifically, a stored
procedure. Ensure you are logged in as a sysadmin, and run:
The second step in configuring Database Mail is to ensure that Service Broker is enabled in the msdb
database (enabled by default). To enable this, stop the SQL Server Agent and run the following:
The third step is necessary only if the SMTP server requires authentication. If this is the case, you need
to ensure that the SQL Server service (default) account credentials can access the server.
4. Logging and Auditing: Log information is stored in the host database (msdb). Query the
sysmail_event_log view to see the log.
To verify that Database Mail is setup correctly, go back to the Management Node and right-click
Database Mail. Select “Send Test Email…” Specify the recipient’s email address, and click “Send Test
Email”. You should receive an email similar to the following:
To view the Database Mail log, simply expand the Management Node, right-click Database Mail, and
select “View Database Mail log”: