Posted By

rengber on 02/18/07


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Connect to a Server and Check Services Using WMI

 / Published in: C#

  1. ServiceController sc = new ServiceController("MSSQLSERVER", serverName);
  2. string sqlStatus = sc.Status.ToString();

Report this snippet  

You need to login to post a comment.