Sql Server执行exe程序

--启用xp_cmdshell

EXEC sp_configure 'xp_cmdshell', 1
GO
RECONFIGURE
GO
----xp_cmdshell { 'command_string' } [ , no_output ]

--执行
EXEC xp_cmdshell 'C:\Sendpnemail\ReplyPn.exe'

 
posted @ 2018-05-31 09:44  零存  阅读(1673)  评论(0编辑  收藏  举报