How to open external exe file from SQL Query.
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.
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.

Shakti Singh DulawatRank #668 · 3.6K reputationPosted May 6, 2016, 12:19 AM EDT
set the executable path
Basit KhanRank #4,768 · 326 reputationPosted May 6, 2016, 7:37 AM EDT
Shakti Singh DulawatRank #668 · 3.6K reputationPosted May 6, 2016, 7:50 AM EDT
Basit KhanRank #4,768 · 326 reputationPosted May 6, 2016, 8:25 AM EDT