您好,欢迎来到保捱科技网。
搜索
您的当前位置:首页Ad Hoc Distributed Queries / xp_cmdshell 的启用与关闭

Ad Hoc Distributed Queries / xp_cmdshell 的启用与关闭

来源:保捱科技网

启用Ad Hoc Distributed Queries: 

exec sp_configure 'show advanced options',1 
reconfigure 
exec sp_configure 'Ad Hoc Distributed Queries',1 
reconfigure 

   

关闭Ad Hoc Distributed Queries: 

exec sp_configure 'Ad Hoc Distributed Queries',0 
reconfigure 
exec sp_configure 'show advanced options',0 
reconfigure

 

启用xp_cmdshell:

-- To allow advanced options to be changed.
EXEC sp_configure 'show advanced options', 1
GO
-- To update the currently configured value for advanced options.
RECONFIGURE
GO
-- To enable the feature.
EXEC sp_configure 'xp_cmdshell', 1
GO
-- To update the currently configured value for this feature.
RECONFIGURE
GO

 

转载于:https://www.cnblogs.com/qiangshu/p/5233304.html

因篇幅问题不能全部显示,请点此查看更多更全内容

Copyright © 2019- baoaiwan.cn 版权所有 赣ICP备2024042794号-3

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务