Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Find PID of cmd which is called from SQL

$
0
0

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


Viewing all articles
Browse latest Browse all 15889

Trending Articles



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