现在的位置: 首页 > 综合 > 正文

SQL Server 非sysadmin调用扩展函数

2012年09月17日 ⁄ 综合 ⁄ 共 212字 ⁄ 字号 评论关闭

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 设置代理账号

抱歉!评论已关闭.