服务器维护,服务器代维,安全设置,漏洞扫描,入侵检测服务

dirtysea 发表于 2012-9-20 14:32:28

sql server2005数据库维护作业之——定期备份

<P><SPAN lang=EN-US XML:LANG="EN-US">SQLServer2005</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">的定期备份是通过创建“维护计划”来实现的。</SPAN></P>
<P><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">主要有两种方式:</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US"><SPAN style="mso-spacerun: yes">&nbsp;<WBR>&nbsp;<WBR>&nbsp;<WBR>&nbsp;<WBR></SPAN> 1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">、维护计划向导(较简单)。</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US"><SPAN style="mso-spacerun: yes">&nbsp;<WBR>&nbsp;<WBR>&nbsp;<WBR>&nbsp;<WBR></SPAN> 2</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">、新建维护计划(用户手工创建,感觉比较复杂,需要搞清楚作业的概念和单位)</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">  </SPAN></P>
<P>&nbsp;<WBR> </P>
<P></P>
<P><SPAN lang=EN-US XML:LANG="EN-US"></SPAN>&nbsp;</P>
<P><SPAN lang=EN-US XML:LANG="EN-US"><WBR></SPAN></P>
<P><SPAN style="COLOR: red; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">如果想在</SPAN><SPAN lang=EN-US style="COLOR: red" XML:LANG="EN-US">SQLServer2005</SPAN><SPAN style="COLOR: red; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">中使用维护计划来设计维护备份数据库任务时,有一个前提条件:“</SPAN><SPAN lang=EN-US style="COLOR: red" XML:LANG="EN-US">SQL Server</SPAN> <SPAN style="COLOR: red; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">代理”服务必须是启用状态</SPAN></P>
<P><SPAN style="COLOR: red; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">启动的步骤:</SPAN></P>
<P><SPAN lang=EN-US style="COLOR: red" XML:LANG="EN-US">打开SQL Server Configuration Manager,启用SQL Server Agent(实例名)。</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR></SPAN></P>
<P><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">下面介绍使用维护计划向导来执行数据库的定期备份</SPAN></P>
<P><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">操作过程:</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">1</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">、单击:开始→程序→</SPAN><SPAN lang=EN-US XML:LANG="EN-US">Microsoft SQL Server 2005</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">→“</SPAN><SPAN lang=EN-US XML:LANG="EN-US">SQL Server Management Studio</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">”</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">2</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">、右键单击:</SPAN><SPAN lang=EN-US XML:LANG="EN-US">SQL Server</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">代理→启动</SPAN></P>
<P><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'"><A href="http://photo.blog.sina.com.cn/showpic.html#blogid=6ca3070301010m1v&amp;url=http://s5.sinaimg.cn/orignal/6ca30703gbdb5167eccb4" target=_blank><IMG title="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" height=283 alt="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" src="http://s5.sinaimg.cn/middle/6ca30703gbdb5167eccb4&amp;690" width=275 action-type="show-slide" action-data="http%3A%2F%2Fs5.sinaimg.cn%2Fmiddle%2F6ca30703gbdb5167eccb4%26690" real_src="http://s5.sinaimg.cn/middle/6ca30703gbdb5167eccb4&amp;690"></A><BR></SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">3</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">、</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">右键单击:管理→维护计划→维护计划向导,单击“下一步”</SPAN></P>
<P><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'"><A href="http://photo.blog.sina.com.cn/showpic.html#blogid=6ca3070301010m1v&amp;url=http://s6.sinaimg.cn/orignal/6ca30703gbdb517bf6115" target=_blank><IMG title="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" height=284 alt="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" src="http://s6.sinaimg.cn/middle/6ca30703gbdb517bf6115&amp;690" width=287 action-type="show-slide" action-data="http%3A%2F%2Fs6.sinaimg.cn%2Fmiddle%2F6ca30703gbdb517bf6115%26690" real_src="http://s6.sinaimg.cn/middle/6ca30703gbdb517bf6115&amp;690"></A><BR><A href="http://photo.blog.sina.com.cn/showpic.html#blogid=6ca3070301010m1v&amp;url=http://s4.sinaimg.cn/orignal/6ca30703gbdb51c4bccd3" target=_blank><IMG title="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" height=510 alt="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" src="http://s4.sinaimg.cn/middle/6ca30703gbdb51c4bccd3&amp;690" width=627 name=image_operate_26641334485627497 action-type="show-slide" action-data="http%3A%2F%2Fs4.sinaimg.cn%2Fmiddle%2F6ca30703gbdb51c4bccd3%26690" real_src="http://s4.sinaimg.cn/middle/6ca30703gbdb51c4bccd3&amp;690"></A><BR></SPAN></P>
<P>&nbsp;<WBR></P>
<P>&nbsp;<WBR></P><SPAN lang=EN-US XML:LANG="EN-US">4</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">、</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">在“选择目标服务器”窗口,依次设置“名称”、“服务器”、“身份验证”等信息,单击“下一步”</SPAN>
<P><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR><A href="http://photo.blog.sina.com.cn/showpic.html#blogid=6ca3070301010m1v&amp;url=http://s5.sinaimg.cn/orignal/6ca30703gbdb520069d94" target=_blank><IMG title="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" height=510 alt="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" src="http://s5.sinaimg.cn/middle/6ca30703gbdb520069d94&amp;690" width=626 name=image_operate_18561334485682069 action-type="show-slide" action-data="http%3A%2F%2Fs5.sinaimg.cn%2Fmiddle%2F6ca30703gbdb520069d94%26690" real_src="http://s5.sinaimg.cn/middle/6ca30703gbdb520069d94&amp;690"></A><BR><BR></SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US"><SPAN style="mso-spacerun: yes">&nbsp;<WBR></SPAN></SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">说明:</SPAN><SPAN lang=EN-US XML:LANG="EN-US">1)</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">身份验证:安装</SPAN><SPAN lang=EN-US XML:LANG="EN-US">sqlserver2005</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">时采用的验证方式</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR></SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">5</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">、</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">在“选择维护任务”窗口,选择准备执行的任务,单击“下一步”</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR><A href="http://photo.blog.sina.com.cn/showpic.html#blogid=6ca3070301010m1v&amp;url=http://s6.sinaimg.cn/orignal/6ca30703gbdb523a78d95" target=_blank><IMG title="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" height=510 alt="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" src="http://s6.sinaimg.cn/middle/6ca30703gbdb523a78d95&amp;690" width=630 name=image_operate_96261334485752336 action-type="show-slide" action-data="http%3A%2F%2Fs6.sinaimg.cn%2Fmiddle%2F6ca30703gbdb523a78d95%26690" real_src="http://s6.sinaimg.cn/middle/6ca30703gbdb523a78d95&amp;690"></A></SPAN><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR></SPAN></P>
<P><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">说明:</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">1)</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">在维护任务列表中勾选需要执行的任务,可多选</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">2)</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">下方黄色区域针对选择的每项任务加以说明</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR></SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">6</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">、</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">在“选择维护任务顺序”窗口,可以调整每项任务的执行顺序,单击“下一步”</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US"><SPAN style="mso-spacerun: yes">&nbsp;<WBR></SPAN></SPAN> <SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana" XML:LANG="EN-US"><A href="http://photo.blog.sina.com.cn/showpic.html#blogid=6ca3070301010m1v&amp;url=http://s2.sinaimg.cn/orignal/6ca30703gbdb527880151" target=_blank><IMG title="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" height=514 alt="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" src="http://s2.sinaimg.cn/middle/6ca30703gbdb527880151&amp;690" width=627 name=image_operate_49061334485820984 action-type="show-slide" action-data="http%3A%2F%2Fs2.sinaimg.cn%2Fmiddle%2F6ca30703gbdb527880151%26690" real_src="http://s2.sinaimg.cn/middle/6ca30703gbdb527880151&amp;690"></A></SPAN><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR></SPAN></P>
<P><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">说明:</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">1)</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">调整多个任务的先后执行顺序可通过上移和下移来实现</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR></SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">7</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">、</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">在“定义备份数据库(完整)任务”窗口,勾选需要备份的数据库名称,单击下一步</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR><A href="http://photo.blog.sina.com.cn/showpic.html#blogid=6ca3070301010m1v&amp;url=http://s6.sinaimg.cn/orignal/6ca30703gbdb52ba45fc5" target=_blank><IMG title="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" height=690 alt="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" src="http://s6.sinaimg.cn/middle/6ca30703gbdb52ba45fc5&amp;690" width=599 name=image_operate_68121334485894113 action-type="show-slide" action-data="http%3A%2F%2Fs6.sinaimg.cn%2Fmiddle%2F6ca30703gbdb52ba45fc5%26690" real_src="http://s6.sinaimg.cn/middle/6ca30703gbdb52ba45fc5&amp;690"></A><BR></SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US"><SPAN style="mso-spacerun: yes">&nbsp;<WBR></SPAN></SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">说明:</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">1)</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">选择将备份文件备份到磁盘上</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">2)</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">指定备份文件存放的文件夹和位置</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">3)</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">勾选“验证备份完整性</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR></SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">8</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">、</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">在“选择计划属性”窗口,单击“更改”按钮打开“新建作业计划窗口”,设置好各项参数后单击“确定”按钮</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US"><SPAN style="mso-spacerun: yes">&nbsp;<WBR></SPAN></SPAN> <B style="mso-bidi-font-weight: normal"><SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: #006699; FONT-FAMILY: Verdana" XML:LANG="EN-US"><A href="http://photo.blog.sina.com.cn/showpic.html#blogid=6ca3070301010m1v&amp;url=http://s2.sinaimg.cn/orignal/6ca30703gbdb52fe86de1" target=_blank><IMG title="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" height=511 alt="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" src="http://s2.sinaimg.cn/middle/6ca30703gbdb52fe86de1&amp;690" width=626 name=image_operate_82471334485962275 action-type="show-slide" action-data="http%3A%2F%2Fs2.sinaimg.cn%2Fmiddle%2F6ca30703gbdb52fe86de1%26690" real_src="http://s2.sinaimg.cn/middle/6ca30703gbdb52fe86de1&amp;690"></A><BR><A href="http://photo.blog.sina.com.cn/showpic.html#blogid=6ca3070301010m1v&amp;url=http://s6.sinaimg.cn/orignal/6ca30703gbdb534676bc5" target=_blank><IMG title="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" height=668 alt="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" src="http://s6.sinaimg.cn/middle/6ca30703gbdb534676bc5&amp;690" width=672 name=image_operate_40741334486021488 action-type="show-slide" action-data="http%3A%2F%2Fs6.sinaimg.cn%2Fmiddle%2F6ca30703gbdb534676bc5%26690" real_src="http://s6.sinaimg.cn/middle/6ca30703gbdb534676bc5&amp;690"></A><BR><BR></SPAN></B></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">说明:</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">1)</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">设置好各项参数后,在摘要说明栏中叙述了本次作业的详细内容</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR></SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">9</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">、</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">再次回到“选择计划属性”窗口,单击下一步</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US"><SPAN style="mso-spacerun: yes">&nbsp;<WBR></SPAN></SPAN> <SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana" XML:LANG="EN-US"><A href="http://photo.blog.sina.com.cn/showpic.html#blogid=6ca3070301010m1v&amp;url=http://s6.sinaimg.cn/orignal/6ca30703gbdb537ab8d25" target=_blank><IMG title="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" height=514 alt="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" src="http://s6.sinaimg.cn/middle/6ca30703gbdb537ab8d25&amp;690" width=627 name=image_operate_11531334486079526 real_src="http://s6.sinaimg.cn/middle/6ca30703gbdb537ab8d25&amp;690"></A><BR><BR></SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR></SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">10</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">、</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">在“选择报告选项”窗口,设置报告的保存或分发方式,单击下一步</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US"><SPAN style="mso-spacerun: yes">&nbsp;<WBR></SPAN></SPAN> <SPAN lang=EN-US style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Verdana" XML:LANG="EN-US"><A href="http://photo.blog.sina.com.cn/showpic.html#blogid=6ca3070301010m1v&amp;url=http://s13.sinaimg.cn/orignal/6ca30703g795eec53b25c" target=_blank><IMG title="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" height=514 alt="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" src="http://s13.sinaimg.cn/middle/6ca30703g795eec53b25c&amp;690" width=626 name=image_operate_63751334486129151 action-type="show-slide" action-data="http%3A%2F%2Fs13.sinaimg.cn%2Fmiddle%2F6ca30703g795eec53b25c%26690" real_src="http://s13.sinaimg.cn/middle/6ca30703g795eec53b25c&amp;690"></A><BR></SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">&nbsp;<WBR></SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US">11</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">、</SPAN> <SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times new roman'; mso-hansi-font-family: 'Times new roman'">显示本次维护计划的详细信息,单击完成</SPAN></P>
<P><SPAN lang=EN-US XML:LANG="EN-US"><SPAN style="mso-spacerun: yes">&nbsp;<WBR></SPAN></SPAN> <SPAN lang=EN-US style="COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-size: 10.5pt" XML:LANG="EN-US"><A href="http://photo.blog.sina.com.cn/showpic.html#blogid=6ca3070301010m1v&amp;url=http://s5.sinaimg.cn/orignal/6ca30703gbdb53e2ac614" target=_blank><IMG title="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" height=513 alt="sql&nbsp;<wbr>server2005数据库维护作业之鈥斺敹ㄆ诒阜" src="http://s5.sinaimg.cn/middle/6ca30703gbdb53e2ac614&amp;690" width=627 name=image_operate_18181334486179945 action-type="show-slide" action-data="http%3A%2F%2Fs5.sinaimg.cn%2Fmiddle%2F6ca30703gbdb53e2ac614%26690" real_src="http://s5.sinaimg.cn/middle/6ca30703gbdb53e2ac614&amp;690"></A><BR><BR><FONT face=宋体 color=#ed1c24>SQL Server 2005 无法删除数据库作业</FONT></SPAN></P>
<P><SPAN lang=EN-US style="COLOR: black; FONT-FAMILY: Verdana; mso-bidi-font-size: 10.5pt" XML:LANG="EN-US"><FONT face=宋体>&nbsp;<WBR>&nbsp;<WBR>&nbsp;<WBR> 遇到MS SQL Server 2005 无法删除数据库作业。</FONT></SPAN></P>
<P>  首先,以sa账户登录,查看以下2个表的数据,如果不为空就有问题。</P>
<P>  Sql代码</P>
<P>  select * from msdb.dbo.sysmaintplan_subplans</P>
<P>  select * from msdb.dbo.sysmaintplan_log</P>
<P>  如果不为空,执行以下操作,基本上不用考虑删除哪一条记录,有问题的作业就会在这里。</P>
<P>  执行</P>
<P>  Sql代码</P>
<P>  delete from msdb.dbo.sysmaintplan_subplans</P>
<P>  delete from msdb.dbo.sysmaintplan_log</P>
<P>  再进行作业操作,可以删除掉了。<BR></P>&nbsp;<WBR>&nbsp;<WBR>&nbsp;<WBR> <FONT color=#ff0000>注:经测试,当手动执行作业时,再删除作业会出现删除不掉的情<FONT color=#ff0000>况</FONT> </FONT>
页: [1]
查看完整版本: sql server2005数据库维护作业之——定期备份