22,209
社区成员
发帖
与我相关
我的任务
分享
SP_CONFIGURE 'show advanced options',1--显示高级参数选项
GO
RECONFIGURE
GO
SP_CONFIGURE 'Ad Hoc Distributed Queries',1--这条是打开Openrowset和Opendatasource的,此处用不到,也可以省略
GO
RECONFIGURE
GO
SP_CONFIGURE 'xp_cmdshell',1--打开xp_cmdshell
GO
RECONFIGURE
GO
SP_CONFIGURE 'show advanced options',0 --关闭显示高级参数选项
RECONFIGURE
GO
-- 附:xp_cmdshell 打开的代码:
SP_CONFIGURE 'show advanced options',1--说明哈
GO
RECONFIGURE
GO
SP_CONFIGURE 'Ad Hoc Distributed Queries',1--说明哈
GO
RECONFIGURE
GO
SP_CONFIGURE 'xp_cmdshell',1--说明哈
GO
RECONFIGURE
GO
RECONFIGURE
GO
EXEC master..xp_cmdshell 'mkdir E:\bank',NO_OUTPUT
-- 附:xp_cmdshell 打开的代码:
SP_CONFIGURE 'show advanced options',1
GO
RECONFIGURE
GO
SP_CONFIGURE 'Ad Hoc Distributed Queries',1
GO
RECONFIGURE
GO
SP_CONFIGURE 'xp_cmdshell',1
GO
RECONFIGURE
GO
RECONFIGURE
GO
/*创建文件D:\bank*/
EXEC xp_cmdshell 'mkdir E:\bank',NO_OUTPUT