脚本导入

EXEC sp_configure 'show advanced options', 1 GOsql

-- 从新配置shell

RECONFIGURE GOip

-- 启用cmd

xp_cmdshell EXEC sp_configure 'xp_cmdshell', 1 GOio

--从新配置ast

RECONFIGURE GOdva

 

exec master..xp_cmdshell 'osql -S 127.0.0.1,1433 -d db -U sa -P xxx -i E:\script\script.sql'配置

相关文章
相关标签/搜索