| title | State Property (SqlService Class) | Microsoft Docs | |
|---|---|---|
| ms.custom | ||
| ms.date | 06/13/2017 | |
| ms.prod | sql-server-2014 | |
| ms.reviewer | ||
| ms.technology | wmi | |
| ms.topic | reference | |
| api_name |
|
|
| api_location |
|
|
| topic_type |
|
|
| helpviewer_keywords |
|
|
| ms.assetid | 9e09f419-947c-4d4b-9a49-2d3396c847cd | |
| author | CarlRabeler | |
| ms.author | carlrab | |
| manager | craigg |
Gets or sets the current state of the service.
object
.State [= value]
object
A SqlService Class object that represents the service.
A uint32 value that specifies the state of the service.
Values can be one of the following.
1
Stopped. The service is stopped.
2
Start Pending. The service is waiting to start.
3
Stop Pending. The service is waiting to stop.
4
Running. The service is running.
5
Continue Pending. The service is waiting to continue.
6
Pause Pending. The service is waiting to pause.
7
Paused. The service is paused.