环球网校是美国纳斯达克上市企业欢聚时代(NASDAQ:YY)旗下品牌 | 住房和城乡建设部 建筑人才培训合作单位
您现在的位置在: > 计算机类 > 计算机等级考试 > 考试辅导 >

计算机等级考试辅导:SQLServer2005里设置使用xp_cmdshell

2010-06-29 来源:互联网 作者:第一考试网

计算机等级考试辅导:SQLServer2005里设置使用xp_cmdshell

#

  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

#

责编: 返回顶部  打印

关于我们联系我们友情链接网站声明网站地图广告服务帮助中心