定 'xp_cmdshell' 不存在,或可能是一
如目的
exec xp_cmdshell 'dir c:\'
SQL Server 已封元件 'xp_cmdshell' 的 程序 'sys.xp_cmdshell' 之存取,因此元件已由此伺服器的安全性。系管理可以使用 sp_configure 用 'xp_cmdshell' 的使用。如需有用 'xp_cmdshell' 的,《SQL Server 上》中的<介面>(Surface Area Configuration)。
sp_configure 'show advanced options', 1
reconfigure
exec sp_configure 'xp_cmdshell', 1
reconfigure
定 'xp_cmdshell' 不存在,或可能是一。
上查解法
sp_dropextendedproc 'xp_cmdshell'
行OK
sp_addextendedproc 'xp_cmdshell', 'xpsql70.dll'
行OK
- SQL code
use masterselect * fromdbo.sysobjects where id = object_id(N'[dbo].[xp_cmdshell]')name id xtype uid info status base_schema_ver replinfo parent_obj crdate ftcatid schema_ver stats_schema_ver type userstat sysstat indexdel refdate version deltrig instrig updtrig seltrig category cache-------------------------------------------------------- ----------- ----- ------ ------ ----------- --------------- ----------- ----------- ----------------------- ------- ----------- ---------------- ---- -------- ------- -------- ----------------------- ----------- ----------- ----------- ----------- ----------- ----------- ------xp_cmdshell -1008137134 X 4 0 0 0 0 0 2005-10-14 01:40:57.297 0 0 0 X 0 4 0 2005-10-14 01:40:57.297 0 0 0 0 0 2 0
依,,,
哪大大help一下
[解决办法]
高级配置了还不行吗?
[解决办法]
- SQL code
--开启xp_cmdshell--SQL Server blocked access to procedure 'xp_cmdshell'sp_configure 'show advanced options', 1goreconfiguregosp_configure 'xp_cmdshell', 1goreconfigurego--开启sp_OACreate--SQL Server blocked access to procedure 'sys.sp_OACreate'sp_configure 'show advanced options', 1;goreconfigure;gosp_configure 'ole automation procedures', 1;goreconfigure;gosp_configure 'Ad Hoc Distributed Queries',1;goreconfigurego