State Property (SqlService Class)
Applies to: SQL Server
Gets or sets the current state of the service.
Syntax
object.State [= value]
Parts
object
A SqlService Class object that represents the service.
Property Value/Return Value
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.
Remarks
See Also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for