有没有办法找到哪些帐户可以执行xp_cmdshell?

时间:2011-02-01 23:47:58

标签: sql sql-server

我想知道SQL Server系统上的用户可以执行xp_cmdshell。是否有查询可以执行此操作?

我想知道如何为SQL Server 2000 - 2008

做这件事

1 个答案:

答案 0 :(得分:2)

Google搜索“xp_cmdshell”:

When first enabled, xp_cmdshell requires CONTROL SERVER
permission to execute and the Windows process created by
xp_cmdshell has the same security context as the SQL Server 
service account.

http://msdn.microsoft.com/en-us/library/ms175046.aspx