troubleshooting Question

What is the best method of utilizing a batch file to kill Windows 2003 Server services in T-SQL???

Avatar of DADITWebGroup
DADITWebGroupFlag for United States of America asked on
Windows BatchMicrosoft SQL Server 2005
4 Comments1 Solution219 ViewsLast Modified:
I need to generate a batch file that will interactively disable a specific group of services within a SQL job.  These services have to be disabled one at a time and in sequence so that one service has been verified to be disabled before the next one can be disabled.  The batch file to kill services in general is pretty basic (I know), but what I would like to know is if anyone has experience building something a little more dynamic with some type of loop that verifies that the present service being disabled has in fact been positvely disabled before the batch moves to the next item.  All these services have to be disabled in order for me to be able to run the proper maintenance required for the databases.  Any ideas?
"Batchelor", Developer and EE Topic Advisor
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros