Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 653
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

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