日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > 数据库 >内容正文

数据库

Setup SQL Server 2008 Maintenance Plan Email Notifications

發(fā)布時(shí)間:2023/12/9 数据库 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Setup SQL Server 2008 Maintenance Plan Email Notifications 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

一條龍作完,如何設(shè)置EXCHANGE的操作員郵件通知。。

~~~~

http://808techblog.com/2009/07/setup-sql-server-2008-maintena.html

?

For most of the SQL installs that I maintain, nightly SQL dumps to disk and then copy to tape is my preferred backup method. I use a simple maintenance plan that dumps all user databases to the local disk and then a cleanup task that purges backup files older than a set number of days. An email alert with either success or fail in the subject line is sent out after each maintenance plan task is completed. This article will review step by step how to add email notifications to your existing SQL 2008 maintenance plan.

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.

One of the nice features of the Notify Operator Task in SQL 2008 that wasn't an option in SQL 2005 is the ability to add a unique subject line to the message.?Its helpful to be able to see the success or fail status at a glance from?just the subject line especially?with the morning barrage of emails. Comments or questions welcomed.?

轉(zhuǎn)載于:https://www.cnblogs.com/aguncn/p/3270807.html

總結(jié)

以上是生活随笔為你收集整理的Setup SQL Server 2008 Maintenance Plan Email Notifications的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。