調用MSSQLSERVER的系統過程xp_cmdshell發生錯誤:xpsql.cpp: 錯誤 來自
2024-08-31 00:47:57
供稿:網友
 
--消息 50001,級別 1,狀態 50001
--xpsql.cpp: 錯誤 87 來自 getproxyaccount(第 604 行)
打開sqlserver的企業管理器,進入“管理”,右鍵點擊“sql server代理”點擊屬性;
首先你要“允許非sysadmin權限的用戶執行cmdexec.....”,然后指定一個賬號。
不過,你需要意識到這樣做所存在的安全上的風險。
有關英文回復:
you don't have to use a domain account.  when you go into the  "job system" properties on your sql agent, click the "reset proxy account".  it will ask you for a new user/password and domain.  for the domain, just put the name of the local server (of course, that account has to exist on the local server).
also, i'm sure you know what the risk is by allowing non-syadmins the ability to execute xp_cmdshell....
可以使用下面的語句來獲取當前的代理所使用的賬號:
exec master.dbo.xp_sqlagent_proxy_account n'get'
可以使用下面的語句來設置當前的代理所使用的賬號:
exec master.dbo.xp_sqlagent_proxy_account n'set',n'域名', n'賬號名', n'密碼'
it generally indicates that either the sql agent account is
not a local admin account so it can't access the information
on the proxy account or you haven't set up a proxy account. 
you can execute the following to get the proxy account:
exec master.dbo.xp_sqlagent_proxy_account n'get'
if it doesn't return anything, you need to create the proxy
account.
you can set the proxy account with:
exec master.dbo.xp_sqlagent_proxy_account n'set',
n'domainname', n'username', n'password'
消息 50001,級別 1,狀態 50001
xpsql.cpp: 錯誤 1326 來自 logonuserw(第 620 行)國內最大的酷站演示中心!