⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 6240.htm

📁 说明: column_list列出要添加数据的列名。在给表或视图中部分列添加数据时
💻 HTM
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MS SQL基础教程:sql警报 - 编程入门网</title>
<meta name="keywords" content="MS SQL基础教程:sql警报">
<meta name="description" content="MS SQL基础教程:sql警报">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="/images/style.css" rel="stylesheet" type="text/css" />
<script src="/js1/head.js"></script>
</head>
<body leftmargin="0" topmargin="0" bgcolor="#efefef" oncopy=nocopy()>
<TABLE width="760" cellPadding="0" cellSpacing="0"  bgcolor="#eff7fe" align="center">
  <TR>
    <TD><a href="/index.htm"><img src="/images/logo1.gif" width="150" height="60" border="0"></a></TD>
    <TD width="470" align="right"><script src="/js1/top.js"></script></TD>
    <TD width="125" align="center"><script src="/js1/topsy.js"></script></TD>
  </TR>
</TABLE>
<table width="760" border="0" cellpadding="1" cellspacing="0" class="bklan" align="center">
  <tr>
    <td align="center" bgcolor="#eff7fe" height="24"> | <a href='/Programming/index.htm'>编程语言</a> | <a href='/webkf/index.htm'>web开发</a> | <a href='/data/index.htm'>数据库</a> | <a href='/Network/index.htm'>网络技术</a> | <a href='/OS/index.htm'>操作系统</a> | <a href='/Servers/index.htm'>服务器</a> | <a href='/web/index.htm'>网页设计</a> | <a href='/Design/index.htm'>图形设计</a> | <a href='/Office/index.htm'>办公软件</a> | <a href='/soft/index.htm'>常用软件</a> | <a href='/shadu/index.htm'>杀毒频道</a> | <a href='/PC/index.htm'>学电脑</a> |</td>
  </tr>
</table>
<table cellspacing="0" cellpadding="0" width="760" align="center" bgcolor="#ffffff" border="0">
  <tr>
    <td align="center"><script src="/js1/content1.js"></script></td>
  </tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <td height="25" background="/templets/img/31bg3.gif" align="left" class="guidet">&nbsp;→ 当前位置:<a href='http://www.bianceng.cn/'>首页</a>→<a href='/data/index.htm'>数据库</a>→<a href='/data/SQLServer/index.htm'>SQL Server</a>→<a href='/data/SQLServer/jc/index.htm'>SQL Server教程</a>→正文</td>
  </tr>
</table>
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td valign="top" class="guidet" width="595"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="ct">
  <tr>
    <td align="center" valign="middle" class="til"><h3>&nbsp;&nbsp; MS SQL基础教程:sql警报 </h3>
      发布时间:2007-12-25 来源:网络/责编:编程入门 作者:佚名<br />
      <script src="/js1/468.js"></script>
    </td>
  </tr>
  <tr>
    <td style="font-size:14px" align="left" class="til"><table border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><script src="/js1/300.js"></script></td>
</tr>
</table><p>  在SQL Server 中通过警报管理器定义警报,当某些特定的事件发生时会自动报警。当警报被触发时,通过电子邮件或寻呼通知操作员,从而让操作员了解系统中发生了什么事件,比如数据库使用空间不够了或事务日志已满。SQL Server 产生的错误信息、事件都会被记入Windows NT 的应用日志,SQL Server 读取日志并与已定义了警报的事件相比较,如果匹配,则将触发警报。</p>
<p>  在SQL Server 中利用警报管理器可创建二种类型的警报:事件警报和性能状况警报。</p>
<p>  17.4.1 创建事件警报</p>
<p>  使用SQL Server Enterprise Manager 创建事件警报的步骤为:</p>
<p>  (1) 启动SQL Server Enterprise Manager, 登录到指定的服务器,分别顺次单击management, SQL Server Agent 左边的&ldquo;+&rdquo; (如果SQL Server Agent 没有启动请启动)。</p>
<p>  (2) 右击Alerts 图标,在弹出菜单中选择New Alert 选项,打开New Alert Properties 对话框。从中选择General 标签如图17-14 所示。其中各选项的含义为;</p>
<p>  <img onclick="get_larger(this)" alt="" src="/upimg/071226/11b6129360601K111.gif" /> Name: 警报的名称,其长度不超过128 个字符; Type: 警报的类型,SQL Server event alert 表示事件类型的警报,SQL Serverperformance condition alert 表示性能状况警报; Error number: 表示触发警报的错误号,只能使用在事件警报中; Severity: 表示错误的等级,其取值范围为1 至25。 只能使用在事件警报中。 (3) 选中Error number 单选按钮,然后单击右面的方框按钮,打开Manage SQL Server Messages 对话框,选择Search 标签页。如图17-15 所示。</p>
<p>  <img onclick="get_larger(this)" alt="" src="/upimg/071226/11b61293EP1X118.gif" /></p>
<p>  在该对话框内,可以在Message Text Contains 中输入某一字符串,单击&ldquo;Find&rdquo; 按钮,会在Messages 标签页上显示出所有包括该字符串的错误消息。</p>
<p>  (4) 选中Message 标签页,单击&ldquo;New&rdquo; 按钮弹出New SQL Server Message 对话框,如图17-16 所示。</p>
<p>  <img onclick="get_larger(this)" alt="" src="/upimg/071226/11b61293M60196252.gif" /></p>
<p>  Message: 表示错误消息文本,其最大长度为255 个字符;</p>
<p>  Always write to Windows NT event log: 表示将消息写入Windows NT 应用日志,如果想让SQL Server Agent 监测警报,必须选中此复选框。</p>
<p>  (5) 单击&ldquo;确定&rdquo;,回到New Alert Properties 对话框,选择Response 标签页。如图17-17 所示。</p>
<p>  <img onclick="get_larger(this)" alt="" src="/upimg/071226/11b61293V5020W37.gif" /> </p>
<p>Execute Job: 出现警报时执行的作业; 在Operator to notify: 下的表格中,显示把警报送给哪些操作者,并定义以哪种方式(邮件、寻呼)传送; Include alert error text in: 表示把警报写入哪种(邮件、寻呼、网络传送)通知当中; Additional notification message to send to operator: 传送给操作员的附加消息; Delay between responses for a recurring alert: 表示重复警报连续两次响应的时间间隔。 </p>
<p>  17.4.2 创建性能警报</p>
<p>  性能警报是指当某一性能指数超过预定义的性能阈值时,性能警报就会被触发,通过在性能警报中定义的电子邮件或寻呼,就可以把相应的警告信息通知给管理员。</p>
<p>  性能警报的创建步骤与事件警报的创建步骤几乎相同其区别主要表现在:</p>
<p>  当打开New Alert Properties 对话框时,选择General 标签,在Type 旁的下拉列表中选择SQL Server performance condition alert, 如图17-18 所示。</p>
<p>  <img onclick="get_larger(this)" alt="" src="/upimg/071226/11b612939430216450.gif" /></p>
Object: 表示Windows NT performance Monitor 对象; Counter: 表示Windows NT performance Monitor 的计数器; Instance: 计数器指定的实例; Alert if Counter: 条件的阈值; Value: 警报的阈值。
<p>  其它设置请参看事件警报的创建过程。</p>
<p>  本章小结</p>
<p>  SQL Server Agent 是实现自动管理任务的强有力的工具,同时在作业规划器和警报管理工具的帮助下提供了方便、简化数据库管理的环境,极大地减少管理任务的工作量,提高了管理效率。</p>
<p>  <a href="/data/SQLServer/jc/200712/6352.htm">查看全套&quot;MS SQL入门基础教程&quot;</a></p><center><br /><script src="/js1/4682.js"></script></center>
      <p>上一篇:<a href='/data/SQLServer/jc/200712/6239.htm'>MS SQL基础教程:sql作业</a>  &nbsp; 下一篇:<a href='/data/SQLServer/jc/200712/6241.htm'>MS SQL基础教程:数据转换服务基本概念</a> </p></td>
  </tr>
  <tr>
    <td align="left" style="font-size:14px;" height="25"><IMG src="/images/t0.gif" width="12" height="12" align=absMiddle><strong>相关文章</strong><br /><table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6239.htm">MS SQL基础教程:sql作业</a><br/>
	</td>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6241.htm">MS SQL基础教程:数据转换服务基本概念</a><br/>
	</td>
	</tr>
<tr>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6238.htm">MS SQL基础教程:SQL操作员</a><br/>
	</td>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6242.htm">MS SQL基础教程:DTS导入、导出向导</a><br/>
	</td>
	</tr>
<tr>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6237.htm">MS SQL基础教程:代理服务-配置SQL Server A</a><br/>
	</td>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6243.htm">MS SQL基础教程:警报</a><br/>
	</td>
	</tr>
<tr>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6236.htm">MS SQL基础教程:复制监视器</a><br/>
	</td>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6244.htm">MS SQL基础教程:SQL Server的工具-SQL Mail</a><br/>
	</td>
	</tr>
<tr>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6235.htm">MS SQL基础教程:复制选项的规划</a><br/>
	</td>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6245.htm">MS SQL基础教程:使用SQL Server Profiler</a><br/>
	</td>
	</tr>
<tr>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6234.htm">MS SQL基础教程:合并复制</a><br/>
	</td>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6246.htm">MS SQL基础教程:SQL Query Analyzer</a><br/>
	</td>
	</tr>
<tr>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6233.htm">MS SQL基础教程:事务复制</a><br/>
	</td>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6247.htm">MS SQL基础教程:SQL Server2000与Internet:</a><br/>
	</td>
	</tr>
	</table>
</td>
  </tr>
</table>
</td>
    <td width="165" valign="top" class="guideb"><script src="/js1/1601.js"></script><table width="100%" border="0" cellpadding="0" cellspacing="0" valign="top">
      <tr>
        <td height="25" align="center" background="/templets/img/31bg3.gif"><strong>阅读排行</strong></td>
      </tr>
      <tr>
        <td>·<a href="/data/SQLServer/jc/200712/6352.htm">MS SQL Server入门教程</a><br/>
·<a href="/data/SQLServer/jc/200807/10974.htm">MS SQL基础教程:存储过程</a><br/>
·<a href="/data/SQLServer/jc/200705/1189.htm">sql语言教程</a><br/>
·<a href="/data/SQLServer/jc/200807/10973.htm">MS SQL基础教程:创建存储</a><br/>
·<a href="/data/SQLServer/jc/200705/1182.htm">sql字符串函数</a><br/>
·<a href="/data/SQLServer/jc/200712/6301.htm">MS SQL基础教程:SQL Serve</a><br/>
·<a href="/data/SQLServer/jc/200712/6302.htm">MS SQL基础教程:SQL Serve</a><br/>
·<a href="/data/SQLServer/jc/200712/6314.htm">MS SQL基础教程:数据类型</a><br/>
·<a href="/data/SQLServer/jc/200705/1188.htm">Sql语言基础</a><br/>
·<a href="/data/SQLServer/jc/200712/6311.htm">MS SQL基础教程:Transact-</a><br/>
·<a href="/data/SQLServer/jc/200712/6312.htm">MS SQL基础教程:SQL变量</a><br/>
·<a href="/data/SQLServer/jc/200705/1184.htm">sql基本语句</a><br/>
·<a href="/data/SQLServer/jc/200807/10972.htm">MS SQL基础教程:管理存储</a><br/>
·<a href="/data/SQLServer/jc/200712/6306.htm">MS SQL基础教程:数据库基</a><br/>
·<a href="/data/SQLServer/jc/200705/1178.htm">sql数据表</a><br/>
 </td>
      </tr>
	  <tr>
        <td><script src="/js1/1602.js"></script></td>
      </tr>
	  <tr>
        <td height="25" align="center" background="/templets/img/31bg3.gif"><strong>最新文章</strong></td>
      </tr>
	  <tr>
        <td><script src="/plus/js/0.js" language="javascript"></script></td>
      </tr>
	  </table></td>
  </tr>
</table>
<table cellspacing="0" cellpadding="0" width="760" align="center" bgcolor="#ffffff" border="0">
  <tr>
    <td align="center"><script src="/js1/content2.js"></script></td>
  </tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr height="26">
    <td bgcolor="#e1f0fd" width="48"></td>
    <td bgcolor="#6ab3f4" width="35"></td>
    <td bgcolor="#0a518f" colspan="2" width="4"></td>
    <td bgcolor="#c0c0c0" width="530" align="center"><a title="将本站设为你的首页" onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('http://www.bianceng.cn');return false;" href="http://www.bianceng.cn/">设为首页</a> | <a class="navmenu" 
      title="将本站加入到你的收藏夹" 
      href="javascript:window.external.AddFavorite(location.href,document.title)">加入收藏</a> | <a href="/about/about.htm">关于本站</a> | <a href="/plus/flink.php">友情链接</a> | <a href="/about/banquan.htm">版权声明</a> | <a href="/plus/sitemap.html">网站地图</a> | <a href="/plus/rssmap.html">RSS订阅</a></td>
    <td bgcolor="#0a518f" colspan="2" width="4"></td>
    <td bgcolor="#6ab3f4" width="32"></td>
    <td bgcolor="#e1f0fd" width="47"></td>
  </tr>
  <tr height="26">
    <td colspan="9" bgcolor="#FFFFFF" align="center">编程入门网 版权所有,bianceng.cn,All Rights Reserved. <script src="/js/tongji.js"></script> 阅读次数:<script src="/plus/count.php?aid=6240&mid=0" language="javascript"></script></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -