由于存在安全隐患,所以在SQL Server中, xp_cmdshell 默认是关闭的。

exec sp_configure 'show advanced options',1
reconfigure
go
exec sp_configure 'xp_cmdshell',0
reconfigure
go

 

 

 

exec sp_configure 'show advanced options',1
reconfigure
go
exec sp_configure 'xp_cmdshell',1
reconfigure
go

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2021-12-17
  • 2021-10-26
  • 2020-11-01
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-09
  • 2022-02-16
  • 2021-06-04
  • 2021-12-05
  • 2021-12-29
  • 2022-12-23
相关资源
相似解决方案