在SQLServer2005里设置使用xp_cmdshell
来源:优易学  2011-1-8 10:46:30   【优易学:中国教育考试门户网】   资料下载   IT书店
  SQL Server 2005 中引入的 xp_cmdshell 选项是服务器配置选项,使系统管理员能够控制是否可以在系统上执行 xp_cmdshell 扩展存储过程。
  默认情况下,xp_cmdshell 选项在新安装的软件上处于禁用状态,但是可以通过使用外围应用配置器工具或运行 sp_configure 系统存储过程来启用它,如下面的代码示例所示:
  -- To allow advanced options to be changed.
  EXEC sp_configure ’show advanced options’, 1
  GO
  -- To update the currently configured value for advanced options.
  RECONFIGURE
  GO
  -- To enable the feature.
  EXEC sp_configure ’xp_cmdshell’, 1
  GO
  -- To update the currently configured value for this feature.
  RECONFIGURE
  GO

责任编辑:小草

文章搜索:
 相关文章
热点资讯
热门课程培训