【发布时间】:2013-12-11 02:11:30
【问题描述】:
我试图在 Microsoft SQL Server 2000 数据库上运行 xp_cmdshell,但遇到了问题。当我使用它运行命令时,它会超时,即使是像 dir 这样的简单操作。
我执行了以下操作以确保 xp_cmdshell 已启用。
EXEC sp_configure ’show advanced options’, 1
RECONFIGURE
EXEC sp_configure ’xp_cmdshell’, 1
RECONFIGURE
运行 EXEC sp_configure 'xp_cmdshell',1 时出现错误消息
*配置选项'xp_cmdshell'不存在,也可能是高级选项*
我确认通过运行 EXEC sp_configure 启用了高级选项,输出甚至没有显示 xm_cmdshell,整个输出是:
affinity mask -2147483648 2147483647 0 0
allow updates 0 1 0 0
awe enabled 0 1 0 0
c2 audit mode 0 1 0 0
cost threshold for parallelism 0 32767 5 5
Cross DB Ownership Chaining 0 1 0 0
cursor threshold -1 2147483647 -1 -1
default full-text language 0 2147483647 1033 1033
default language 0 9999 0 0
fill factor (%) 0 100 0 0
index create memory (KB) 704 2147483647 0 0
lightweight pooling 0 1 0 0
locks 5000 2147483647 0 0
max degree of parallelism 0 32 0 0
max server memory (MB) 4 2147483647 2147483647 2147483647
max text repl size (B) 0 2147483647 65536 65536
max worker threads 32 32767 255 255
media retention 0 365 0 0
min memory per query (KB) 512 2147483647 1024 1024
min server memory (MB) 0 2147483647 0 0
nested triggers 0 1 1 1
network packet size (B) 512 32767 4096 4096
open objects 0 2147483647 0 0
priority boost 0 1 0 0
query governor cost limit 0 2147483647 0 0
query wait (s) -1 2147483647 -1 -1
recovery interval (min) 0 32767 0 0
remote access 0 1 1 1
remote login timeout (s) 0 2147483647 20 20
remote proc trans 0 1 0 0
remote query timeout (s) 0 2147483647 600 600
scan for startup procs 0 1 0 0
set working set size 0 1 0 0
show advanced options 0 1 1 1
two digit year cutoff 1753 9999 2049 2049
user connections 0 32767 0 0
user options 0 32767 0 0
【问题讨论】:
-
我很确定 SQL 2000 中不存在此选项。它仅在以后的版本中引入。因此,请返回解决有关超时的原始问题。你能发布确切的 T-SQL 超时吗?
标签: sql database security sql-server-2000