Aracılığıyla paylaş


ServerStatus Enumeration

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.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Bildirim
<FlagsAttribute> _
Public Enumeration ServerStatus
'Kullanım
Dim instance As ServerStatus
[FlagsAttribute]
public enum ServerStatus
[FlagsAttribute]
public enum class ServerStatus
[<FlagsAttribute>]
type ServerStatus
public enum ServerStatus

Members

Member name Description
Unknown The instance of SQL Server is in an unknown state.
Online The instance of SQL Server is online.
OnlinePending The instance of SQL Server is waiting to come online.
Offline The instance of SQL Server is offline.
OfflinePending The instance of SQL Server is waiting to go offline.

Remarks

The ServerStatus enumeration class is served by the Server class.

See Also

Reference

Microsoft.SqlServer.Management.Smo Namespace