Solved

script to stop SQLcmd.exe

Posted on 2014-01-13
1
530 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

A short article about a problem I had getting the GPS LocationListener working.
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now