微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

sqlserver 开启xp_cmdshell .

  1. 开启xp_cmdshell  
  2. -- To allow advanced options to be changed.  
  3. EXEC sp_configure 'show advanced options', 1  
  4. GO  
  5. -- To update the currently configured value for advanced options.  
  6. RECONfigURE  
  7. GO  
  8. -- To enable the feature.  
  9. EXEC sp_configure 'xp_cmdshell', 1  
  10. GO  
  11. -- To update the currently configured value for this feature.  
  12. RECONfigURE  
  13. GO 
  14. -------------------------
  15. -- 允许配置高级选项 EXEC sp_configure 'show advanced options',1 GO -- 重新配置 RECONfigURE GO -- 启用xp_cmdshell EXEC sp_configure 'xp_cmdshell',1 GO --重新配置 RECONfigURE GO
     

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐