Posted By

rengber on 02/18/07


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

umang_nine


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.