启用xp_cmdshell执行脚本

-- 启用xp_cmdshell
EXEC sp_configure 'show advanced options', 1
GO
RECONFIGURE
GO
EXEC sp_configure 'xp_cmdshell', 1
GO
--重新配置
RECONFIGURE
GO
--执行脚本
EXEC xp_cmdshell 'D:\Documents\Working Folder\ScanPack\Update\exe\SqlDataToExcel.exe'

posted @ 2017-04-28 22:47  码着码着就习惯了  阅读(254)  评论(0)    收藏  举报