码迷,mamicode.com
首页 > 数据库 > 详细

sp_configure命令开启组件Agent XPs,数据库计划(Maintenance Plan)

时间:2015-05-28 19:35:11      阅读:355      评论:0      收藏:0      [点我收藏+]

标签:

新建“计划(Maintenance Plan)”时,记得执行计划需把SQL的“代理服务(SQL Server Agent)”也开启
出现对话框:“SQL Server 阻止了对组件 ‘Agent XPs‘ 的 过程 ‘dbo.sp_set_sqlagent_properties‘ 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。SQL Server 阻止了对组件 ‘Agent XPs‘ 的 过程 ‘dbo.sp_set_sqlagent_properties‘ 的访问,因为此组件已作为此服务器安全配置的一部分而被关闭。系统管理员可以通过使用 sp_configure 启用 ‘Agent XPs‘。有关启用 ‘Agent XPs‘ 的详细信息,请参阅 SQL Server 联机丛书中的 "外围应用配置器"。 (.Net SqlClient Data Provider) 。”
执行下面SQL语句进行解决:
1 sp_configure show advanced options, 1;
2 go
3 reconfigure;
4 go
5 
6 sp_configure Agent XPs, 1;
7 go
8 reconfigure;
9 go 

 

数据库计划的使用场景:
开启“代理服务(SQL Server Agent)”,新建“计划(Maintenance Plan)”,每周三、周五、周日晚上1点钟执行备份计划,进行完全备份KenmuPortal数据库,备份文件存放在“C:\KenmuTemp\BackUp”文件夹中,只保存最新一周的bak备份文件。
技术分享
 
技术分享
 
技术分享
 
技术分享
 
结果:
技术分享
 

sp_configure命令开启组件Agent XPs,数据库计划(Maintenance Plan)

标签:

原文地址:http://www.cnblogs.com/huangjianwu/p/4536556.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!