摘要:
首先在解决方案资源管理器中添加引用System.ServiceProcess.dll然后在.cs中using System.ServiceProcess;然后在事件中写代码: ServiceController sc=new ServiceController("MSSQLSERVER"); if(sc.Status==ServiceControllerStatus.Stopped) ... 阅读全文
posted @ 2006-02-23 14:36
Lucy.Net
阅读(263)
评论(0)
推荐(0)