Solved

script to stop SQLcmd.exe

Posted on 2014-01-13
1
548 Views
Last Modified: 2014-01-15
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
Comment
Question by:bbitadmin
1 Comment
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 39780936
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question