1.在sp_configure 配置xp_cmdshell 可运行

2.创建一个账号 test ,用来执行 xp_cmdshell 但是非sysadmin权限

3.用grant 把 xp_cmdshell 权限赋予 test

4.创建代理账号,这个账号是windows 账号。

5.在sql server 中 设置代理账号,右击实例属性 安全性下的代理中填入 windows 账号密码
   或者使用 sp_xp_cmdshell_proxy_account 设置代理账号

相关文章:

  • 2021-09-12
  • 2022-02-05
  • 2022-12-23
  • 2021-07-12
  • 2021-07-07
  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-06
  • 2022-02-23
  • 2021-11-24
  • 2021-07-30
  • 2021-08-05
  • 2021-06-16
  • 2021-12-11
相关资源
相似解决方案