Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Gets the state of the SQL Server service, such as running, stopped, or paused.
Namespace: Microsoft.SqlServer.Management.Smo.Wmi
Assembly: Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)
Syntax
'Declaration
Public ReadOnly Property ServiceState As ServiceState
Get
'Usage
Dim instance As Service
Dim value As ServiceState
value = instance.ServiceState
public ServiceState ServiceState { get; }
public:
property ServiceState ServiceState {
ServiceState get ();
}
member ServiceState : ServiceState
function get ServiceState () : ServiceState
Property Value
Type: ServiceState
A ServiceState object value that specifies the state of the SQL Server service.
Examples
Managing Services and Network Settings by Using WMI Provider
See Also
Reference
Microsoft.SqlServer.Management.Smo.Wmi Namespace