1开启xp_cmdshell:
'xp_cmdshell'是一个advanced option,所以需要先打开选项'show advanced options'并激活后,再设置其它选项
--激活show advanced options:
exec sp_configure 'show advanced options', 1
go
RECONFIGURE WITH OVERRIDE
go
--开启xp_cmdshell:
exec sp_configure 'xp_cmdshell', 1
go
RECONFIGURE WITH OVERRIDE
go
2调用bat批处理文件:
EXEC master..xp_CMDShell '"D:ProgramSUNLIKE 365-FTFT服务器365-SYNC.BAT"'
3批处理调用jar