如何在 SQLServer 中启用 xp_cmdshell 等

如何在 SQLServer 中启用 xp_cmdshell 等


EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;

EXEC sp_configure 'xp_cmdshell', 1;
RECONFIGURE;
--以下能正常执行说明 xp_cmdshell 启用成功
exec xp_cmdshell 'dir c:'

EXEC sp_configure 'Ole Automation Procedures', 1;
RECONFIGURE;

EXEC sp_configure 'Clr Enabled', 1;
RECONFIGURE;

猜你喜欢

转载自www.cnblogs.com/CoderMonkie/p/13202944.html