sql server - How to NOT SELECT the OUTPUT value from a command shell script inside a stored procedure? -


i have stored procedure used ssrs report.

but need run before run query:

sys.xp_cmdshell @sqlcmd; 

the problem running first returns output cell. throws off report because it's expecting proper query , not "output"

how go omitting output select? tried add "no_output" still not work:

set @sqlcmd = '"c:\program files (x86)\imageconverter\imageconverter.exe", no_output'; 

it looks syntax calling no_output clause may issue. though msdn docs show syntax in 1 of examples, msdn listed syntax, this technet article suggests passed literal 2nd parameter xp_cmdshell procedure without quotes, i.e.:

set @sqlcmd = '"c:\program files (x86)\imageconverter\imageconverter.exe"' exec master..xp_cmdshell @sqlcmd, no_output; 

Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -