• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 635
  • Last Modified:

script to stop SQLcmd.exe

I need a script that stops SQLcmd.exe.  This program regularly gets "hung" on several of our machines and I am going to run it as a scheduled job.
0
bbitadmin
Asked:
bbitadmin
1 Solution
 
Duncan RoeSoftware DeveloperCommented:
The command you want is taskkill, as in
taskkill /im SQLcmd.exe

Open in new window

This atttempts to kill all processes with image name SQLcmd.exe.
You may also want to use switches /F (force terminate) and / or /T (process tree) - type taskkill/? to get a full list.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now