Hi All,
I have a requirement of calling a Executable from SQL Server.
I know we can use -
EXEC @result = Master..xp_cmds hell @<command_strin g>
However I want to get the return value (int) from the executable.
xp_cmdshell always returns 0 or 1. How can the executable return code
say 99 be obtained in SQL Server?
Thanks & Regards,
Chandra Mohan
I have a requirement of calling a Executable from SQL Server.
I know we can use -
EXEC @result = Master..xp_cmds hell @<command_strin g>
However I want to get the return value (int) from the executable.
xp_cmdshell always returns 0 or 1. How can the executable return code
say 99 be obtained in SQL Server?
Thanks & Regards,
Chandra Mohan
Comment