問題描述
我在數據庫觸發器中使用 xp_cmdshell 來啟動一個 exe 文件.
I'm using xp_cmdshell within a database trigger to launch a exe file.
xp_cmdshell 已啟用(它可以執行簡單的 cmd 命令,如 'echo').但是當我嘗試通過 xp_cmdshell 啟動 exe 時,訪問被拒絕.
xp_cmdshell is enabled(it can execute simple cmd command like 'echo'). But when I try to launch the exe through xp_cmdshell, the access is denied.
我是數據庫管理員.我可以直接通過cmd啟動exe.有人知道我為什么被拒絕以及如何解決嗎?
I am the database administrator. And I can launch the exe through cmd directly. Anyone know why I get denied and how to fix it?
推薦答案
NTFS 權限可能不足.確保運行 SQL Server 的用戶帳戶"對 *.EXE(和任何依賴文件)具有(讀取+執行)權限
Likely insufficient NTFS permissions. Make sure the 'user account' that the SQL Server is running as, has permission (Read+Execute) to the *.EXE (and any dependent files)
這篇關于為管理員用戶啟用的 xp_cmdshell 訪問被拒絕的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!