HOW TO detect status of a service & manipulate it programmatically

This KB article which explains how to detect status of SQL Server Express service & start it programmatically, can also be used to detect any other service by replacing the appropriate service name.

The System.ServiceProcess.ServiceController class is used to detect the status of a service and start it if required.

Comments

Popular posts from this blog

Maven Crash Course - Learn Power Query, Power Pivot & DAX in 15 Minutes

"Data Prep & Exploratory Data Analysis" course by Maven Analytics

Oracle Cloud Infrastructure 2024 Generative AI Professional Course & Certification Exam (1Z0-1127-24)