ServerStatus ServerStatus ServerStatus Enum

Definition

The ServerStatus enumeration contains values that are used to specify the status of the instance of SQL Server.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

public enum class ServerStatus
[System.Flags]
public enum ServerStatus
Public Enum ServerStatus
Inheritance
ServerStatusServerStatusServerStatus
Attributes

Fields

Offline Offline Offline 16

The instance of SQL Server is offline.

OfflinePending OfflinePending OfflinePending 48

The instance of SQL Server is waiting to go offline.

Online Online Online 1

The instance of SQL Server is online.

OnlinePending OnlinePending OnlinePending 3

The instance of SQL Server is waiting to come online.

Unknown Unknown Unknown 0

The instance of SQL Server is in an unknown state.

Remarks

The ServerStatus enumeration class is served by the Server class.

Applies to