Server.Status Property

 

Applies To: SQL Server 2016 Preview

Gets the current status of the Server.

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

Syntax

[SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.SqlAzureDatabase | SfcPropertyFlags.Matrix)]
public ServerStatus Status { get; }
public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::Standalone | SfcPropertyFlags::SqlAzureDatabase | SfcPropertyFlags::Matrix)]
property ServerStatus Status {
    ServerStatus get();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None | SfcPropertyFlags.Standalone | SfcPropertyFlags.SqlAzureDatabase | SfcPropertyFlags.Matrix)>]
member Status : ServerStatus with get
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Matrix)>
Public ReadOnly Property Status As ServerStatus

Property Value

Type: Microsoft.SqlServer.Management.Smo.ServerStatus

A ServerStatus value that contains the current server status.

See Also

Server Class
Microsoft.SqlServer.Management.Smo Namespace

Return to top