--启用xp_cmdshell
USE master
GO
EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE WITH OVERRIDE
GO
EXEC sp_configure 'xp_cmdshell', 1
GO
RECONFIGURE WITH OVERRIDE
GO
EXEC sp_configure 'show advanced options', 0
GO
RECONFIGURE WITH OVERRIDE
在网上查了很多,好多不带 WITH OVERRIDE,我在
Microsoft SQL Server 2008 (RTM) - 10.0.1600.22 (X64) 上试验的时候,老是不行
加上就OK了