Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

xp_cmdshell returns error on command that runs in command prompt

$
0
0

I am trying to invoke an IMP SPSS production job from an sql script:

EXEC xp_cmdshell 'stats T:\LFS2013\April\SPSS\Load_File.spj -production'

but get the error:

'stats' is not recognized as an internal or external command,operable program or batch file.

But I have added the path of stats to my %PATH% variable and confirmed this by successfully running the very same command from the command prompt.

What am I missing?



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>