EXEC sp_configure 'show advanced options', 1 GO

-- 重新配置

RECONFIGURE GO

-- 启用

xp_cmdshell EXEC sp_configure 'xp_cmdshell', 1 GO

--重新配置

RECONFIGURE GO

 

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

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2021-11-25
  • 2021-08-18
  • 2021-12-20
  • 2021-06-23
  • 2021-10-01
猜你喜欢
  • 2021-08-17
  • 2021-11-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案