Configuring SQL Server e-mail and JOB notification notification capabilities

Source: Internet
Author: User
Tags error handling getdate

The process of configuring mail for SQL Server 2008 is not written, and there are too many cases on the web.

Http://www.cnblogs.com/woodytu/p/5154526.html this case is good.

The main write down after the configuration of error handling:

Database Mail failure Microsoft Official website:

1. SQL Server 2008 blocked the component ' Database Mail XPS '

Run the following code in the msdb database:

EXEC sys.sp_configure N ' Show advanced options ', 1RECONFIGURE with  OVERRIDE;; EXEC sys.sp_configure ' Database Mail XPs ', 1; RECONFIGURE with   OVERRIDE;

2. Clear the messages in the queue:

DECLARE @GETDATE datetime SET @GETDATE = GETDATE () EXECUTE msdb.dbo.sysmail_delete_mailitems_sp @sent_before = @GETDATE; GO

  

Configure the notification notification feature for the JOB:

1. Add a operator operator:

Use [email protected] as the receiving email address, SMTP is the account that sends the mail, here the notification Is the account that receives the mail. This address is preferably a public email address that maps or contains all the messages for the entire team, ensuring that each member of the team can receive email notifications. Change the SQL Server Agent properties selected in Alert System before configuring Biwork profile It contains the SMTP send mail Service [email protected] Account

You can generally not restart the SQL Server Agent, but you can restart it if the test does not take effect later .

Once the above is configured, it can be configured in the job under construction.

After the configuration is complete, wait patiently for a minute to receive a notification e-mail!

Configuring SQL Server e-mail and JOB notification notification capabilities

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.