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
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)