如何从SQL查询中打开exe文件 [英] How to open exe file from SQL query
本文介绍了如何从SQL查询中打开exe文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的,
如何从SQL查询中打开外部exe文件。
谢谢
Basit。
我尝试过:
我激活
USE master
GO
EXEC sp_configure ' 显示高级选项', 1
GO
RECONFIGURE WITH OVERRIDE
GO
EXEC sp_configure ' xp_cmdshell',< span class =code-digit> 1
GO
RECONFIGURE WITH OVERRID E
GO
然后传递查询,但不在下面运行查询
DECLARE @ command varchar ( 8000 )
SET @ command = ' C:\ MyProgram.exe'
EXEC master..xp_cmdshell @ command
当我通过查询时,没有显示正在执行但未打开的exe文件。
谢谢
Basit。
解决方案
参见使用EXEC和EXEC获取创意() [ ^ ]。
Dear,
How to open external exe file from SQL Query.
Thanks
Basit.
What I have tried:
I activate
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
then pass query but not run below is query
DECLARE @command varchar(8000)
SET @command = 'C:\MyProgram.exe'
EXEC master..xp_cmdshell @command
When i pass the query is not showing executing but not open exe file.
Thanks
Basit.
解决方案
See Getting Creative with EXEC and EXEC()[^].
这篇关于如何从SQL查询中打开exe文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文