tc3596
Technical User
- Mar 16, 2001
- 283
I've ead many artiles on xp_cmdshell. I can't figure out how to get it to run.
After several attempts on my test server at work, I decided to try it at home. I have SQL 7 installed on my local PC at home. I created a user tc3596 (with sysadmin privs) I log into query analyzer and log into master db.
This code works:
exec xp_cmdshell 'dir *.exe'
This code does not:
exec xp_cmdshell 'calc.exe'
Query Analyzer just keeps running. If I do a ctr-alt-del, I can see the calc.exe process running, but nothing ever comes up on my screen. In fact, even if youtry and stop the query, it is still actually running when you check 'Current Activity' under Management. You have to kill the process. And then it still won't go away. Y9ou have to rstart sql services. Very frustrating. Any thoughts?
After several attempts on my test server at work, I decided to try it at home. I have SQL 7 installed on my local PC at home. I created a user tc3596 (with sysadmin privs) I log into query analyzer and log into master db.
This code works:
exec xp_cmdshell 'dir *.exe'
This code does not:
exec xp_cmdshell 'calc.exe'
Query Analyzer just keeps running. If I do a ctr-alt-del, I can see the calc.exe process running, but nothing ever comes up on my screen. In fact, even if youtry and stop the query, it is still actually running when you check 'Current Activity' under Management. You have to kill the process. And then it still won't go away. Y9ou have to rstart sql services. Very frustrating. Any thoughts?