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?