Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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)
public enum ServerStatus
Member nameDescription
OfflineThe instance of SQL Server is offline.
OfflinePendingThe instance of SQL Server is waiting to go offline.
OnlineThe instance of SQL Server is online.
OnlinePendingThe instance of SQL Server is waiting to come online.
UnknownThe instance of SQL Server is in an unknown state.

The ServerStatus enumeration class is served by the Server class.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.