A business critical
SQL Server job failed during the weekend without anyone knowing about
it. When some errors are not predictable, a good system should at least
send notifications when things go wrong. In this case, it would have
been appropriate if an email was sent to the relevant person with as
much details possible about the error.
In SQL Server, we need to setup the following two features:
In the next step, all we need is specify the email address of the person or group to receive notifications
Now that the Operator is ready, any sql agent job can use it
Last but not least, let’s make sure that SQL Server Agent is able to use the Database Mail profile
In SQL Server, we need to setup the following two features:
- Firstly, Database Mail; it should be enabled and configured. This has been covered in detail here.
- Secondly, an Operator that will be used by SQL Agent jobs to notify the relevant person or group.
In the next step, all we need is specify the email address of the person or group to receive notifications
Now that the Operator is ready, any sql agent job can use it
Last but not least, let’s make sure that SQL Server Agent is able to use the Database Mail profile
No comments:
Post a Comment