First step is to configure Database Mail. Open Microsoft SQL Server Management Studio then right-click on Database Mail > select Configure Database Mail.
Skip the welcome screen and select Next on the Select Configuration Task window.
Create new profile > fill out Profile name > Select Add under SMTP accounts:
Fill out New Database Mail Account info:
Configure Profile Security > check Public > set as Default > Next > Finish > close
Send test email. Right-click on Database Mail
Fill out test info, select Send Test Email.
Check inbox, select OK on the confirmation screen. If you dont recieve test email then double check and verify smtp settings.
Next step is to configure Operators. Under Object Explorer right-click on Operators >
New Operator
Fill out New Operator info (minimum name and email address)
Select OK.
Next, right click on designated maintenance plan (assuming one is already configured) and select Modify
This should bring up the design window with the current tasks
From the Toolbox window Drag and drop Notify Operator Task to Design window twice. One for success and the other for fail.
Connect the backup database task to each Notify Operator Task and make sure the arrows are pointing down
Designate one of the Notify Operator Task objects connection arrows as Failure. Right click on connection and select Failure. This will turn the connection arrow red.
Double click each Notify Operator Task > check which operators to notify if there are more than one > fill out Subject and Body fields > select OK
Save Maintenance Plan and test.












No comments:
Post a Comment