turn on 'xp_cmdshell'

use master
go
sp_configure 'show advanced options',1
reconfigure with override
go
sp_configure 'xp_cmdshell', 1
reconfigure with override
go

编程技巧