首页 > 技术文章 > Sql Server执行exe程序

ling-cun 2018-05-31 09:44 原文

--启用xp_cmdshell

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

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

 

推荐阅读