sql 2005 备份(开启 xp_cmdshell)

备份计划:

首先删除三天前的备份成功后再完全备份数据库

遇到问题:

use master

--开启高级选项
sp_configure 'show advanced options',1
go
--重新配置
reconfigure
go
--启用xp_cmdshell
exec sp_configure 'xp_cmdshell',1

go

-----遇到错误如下

配置选项 'show advanced options' 已从 1 更改为 1。请运行 RECONFIGURE 语句进行安装。
消息 5808,级别 16,状态 1,第 2 行
不支持对系统目录进行即席更新。

 

解决方法:

1、

exec sp_configure 'allow updates', 0;  --设置为0

GO
--RECONFIGURE WITH OVERRIDE;
--GO

或者在你运行下面个代码的时候:

2:exec sp_configure 'show advanced options', 1;
GO
RECONFIGURE WITH OVERRIDE;  --加上WITH OVERRIDE
GO

关闭 xp_cmdshell,将1改成0即可

exec sp_configure 'xp_cmdshell',0

posted @ 2009-05-25 16:41  wendy-丽  阅读(278)  评论(0编辑  收藏  举报