|
|
Question : SQL 6.5: Kill xp_cmdshell process awaiting user input
|
|
I've called xp_cmdshell on a remote sql server and the command called required some user input. Now I have a process sitting on the server which I cannot kill. The process cannot be killed from the command line or the enterprise GUI.
From reading the newgroups most people say you can either reboot the server, or try to kill the underlying process on the server and then terminate the proc.
I've tried killing the underlying process on the host server, but it did not kill the proc on SQL server.
Is there any other way that this can be accomplished?
|
Answer : SQL 6.5: Kill xp_cmdshell process awaiting user input
|
|
no i didnt mean that there is calling problem , you can call any exe or batch file using the xp_cmd.. SP but the problem is killing it , once the the process is started we dont have reference to the process , so if you need to kill the process from your sql object i say that it is impossible. May be you can do this :- whenver you want to call the PKzip you dont call it directly instead via vc++ create an app which calls the Pkzip , so there by this app has the handle to Pkzip & then it can call the kill command ti kill it.
|
|
|
|
|