Dim sc As new System.ServiceProcess.ServiceController("MSSQLSERVER")try If sc.Status = System.ServiceProcess.ServiceControllerStatus.Stopped ' sc.Start() End Ifcatch ex As exception msgbox("出错,没有")End try