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

📄 6244.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 Server的工具-SQL Mail - 编程入门网</title>
<meta name="keywords" content="MS SQL基础教程:SQL Server的工具-SQL Mail">
<meta name="description" content="MS SQL基础教程:SQL Server的工具-SQL Mail">
<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 Server的工具-SQL Mail </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 除了提供强大的管理工具Enterprise Manager、 可靠的安全性管理和数据库备份与恢复功能、内置的复制组件以外还包括其他一些工具和令人欣慰的功能。在本章中我们将分别介绍SQL Mail、 SQL Server Profiler、 Query Analyzer, 希望读者能够熟练地使用它们从而形成对SQL Server 的全面了解。</p>
<p>  19.1.1 SQL Mail 简介</p>
<p>  在SQL Server Agent 一章我们已经讲过当用户创建的警报被执行时,警报就会通过电子邮件或寻呼通知操作员。由于警报总是基于事件(当某一事件发生时警报被执行,如数据库遭到破坏)或基于条件(当条件超过某一预定值,比如性能警报),所以在接收到电子邮件或寻呼消息时,管理员就会了解系统当前正在处理哪个事件或处于何种状态。在这里电子邮件或寻呼消息是借助于SQL Server Agent 自有的Mail 特征(我们把其称为 SQLAgentMail) 而传送到操作员那里的。SQLAgentMail 和SQL Mail 都是SQL Server 提供的实现邮件传送的两种不同服务。但是,两者的不同点在于SQL Mai 提供更为强大的 Mail 功能。</p>
<p>  如果SQL Server 服务器或客户机与一台邮件服务器建立连接,那么在SQL Mail 的帮助下SQL Server 能够在任何具有与MAPI 保持兼容的邮件系统的服务器上接收或发送电子邮件。不仅如此,由于SQL Mail 提供了多个系统过程,从而使用户更加灵活地在自己的应用程序、存储过程或触发器使用这些存储过程,这完全突破了SQLAgentMail 基于事件和条件的消息传递的局限性。</p>
<p>  在让SQL Mail 表现它的过人之处之前,必须首先正确配置SQL Mail, 否则一切将无从谈起。</p>
<p>  19.1.2 配置SQL Mail</p>
<p>  就单纯配置SQL Mail 来讲,这是一件很容易的事情,但在配置SQL Mail 以前的确有几件重要的事情需要去完成。</p>
<p>  由于SQL Mail 可以与任何MAPI 兼容的邮件系统交互,所以选择MAPI 兼容软件并不是件困难的事,可以使用Microsoft Mail, 也可以使用Microsoft Exchange。 在这里我们建议使用Microsoft Exchange。</p>
<p>  接着,为了使SQL Server 可以接收或发送邮件,必须为SQL Server 设置Microsoft Exchange 邮箱,该工作是由Microsoft Exchange 管理员通过Microsoft Exchange Administrator 来完成的,所以,作为SQL Server 系统管理员,应该与Microsoft Exchange Server 管理员建立很好的联系。</p>
<p>  然后,要把SQL Server 设置成Mail 客户,所以必须在运行SQL Server 的客户机上安装并配置Outlook 客户软件。配置Outlook 客户软件是通过控制面板上的Mail 和Fax 来实现的。</p>
<p>  最后还要测试Exchange 连接是否有效,如果失败,则需重新配置。</p>
<p>  注意:由于SQL Mail运行在SQL Server服务登录账号下,所以必须保证NT登录账号与SQL Server服务登录账号相同,且是NT的系统管理员。</p>
<p>  以上的准备工作完成后就可以配置 SQL Mail 请按以下步骤执行:</p>
<p>  (1) 启动SQL Server Enterprise Manager,登录到指定的服务器,打开Support Service 文件夹。</p>
<p>  (2) 右击SQL Mail 图标,打开SQL Mail Configuration 对话框,如图 19-1 所示。</p>
<p>  <img onclick="get_larger(this)" alt="" src="/upimg/071226/11b613101I0321H7.gif" /></p>
<p>  在Profile 旁的下拉列表中选择所创建的Mail 配置文件,单击Test 按钮进行测试。如果配置成功,则弹出配置成功消息框。</p>
<p>  19.1.3 使用SQL Mail</p>
<p>  SQL Mail 中包括许多存储过程,通过这些存储过程SQL Server 能够接收、发送邮件并对邮件进行处理;也可用这些存储过程来执行查询并向接收者返回查询结果,或对包含查询或存储过程的电子邮件做出应答。这些与SQL Mail 有关的存储过程及其含义见表 19-1。</p>
<p>  <img onclick="get_larger(this)" alt="" src="/upimg/071226/11b613102440332C9.gif" /></p>
<p>  <img onclick="get_larger(this)" alt="" src="/upimg/071226/11b613103D03413Q.gif" /></p>
<p>  <img onclick="get_larger(this)" alt="" src="/upimg/071226/11b613104930353494.gif" /></p>
<p>  <img onclick="get_larger(this)" alt="" src="/upimg/allimg/070501/1714400.gif" /></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/6243.htm'>MS SQL基础教程:警报</a>  &nbsp; 下一篇:<a href='/data/SQLServer/jc/200712/6245.htm'>MS SQL基础教程:使用SQL Server Profiler</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/6243.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/6242.htm">MS SQL基础教程:DTS导入、导出向导</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/6241.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>
<tr>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6240.htm">MS SQL基础教程:sql警报</a><br/>
	</td>
	<td width='50%'>
·<a href="/data/SQLServer/jc/200712/6248.htm">MS SQL基础教程:XML技术</a><br/>
	</td>
	</tr>
<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/6249.htm">MS SQL基础教程:XML文档与数据库表</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/6250.htm">MS SQL基础教程:基于HTTP的数据访问</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/6251.htm">MS SQL基础教程:Web Assistant Wizard</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=6244&mid=0" language="javascript"></script></td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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