Check if SQL Server started?

  • Thread starter Thread starter Dursun
  • Start date Start date
D

Dursun

How do I check if the SQL Server is started?
If not started, can I start it proramatically? How?

THANK YOU!

Dursun
 
Try using the System.ServiceProcess.ServiceController class.

You'll need to add a reference to System.ServiceProcess.dll to your project.

HTH,

Trev.
 
Back
Top