I have a set of SQL jobs which call same exe with different parameters using xp_cmdshell. I have a situation where I need to kill on of the jobs and in order to kill it I need to kill the process associated with the exe which was called from the job. My question is how do I associate the SPID in SQL Server with the PID of the cmd.exe called from the job.
Any inputs are appreciated.
Manohar Punna | Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker
--------------------------------------------------------------------------------
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------------------------------------------------------------------
My Blog |
Team Blog