The DatabaseStatus enumeration is a list of constant values that specify the status of a database, whether it be loading, recovering, or normal, for example. This enumeration has a
FlagsAttribute attribute that allows a bitwise combination of its member values.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
public enum class DatabaseStatus
[System.Flags] public enum DatabaseStatus
Public Enum DatabaseStatus
|AutoClosed AutoClosed AutoClosed||512||
The database has been automatically closed.
|EmergencyMode EmergencyMode EmergencyMode||256||
The database is in emergency mode.
|Inaccessible Inaccessible Inaccessible||62||
The database is inaccessible. The server might be switched off or the network connection has been interrupted.
|Normal Normal Normal||1||
The database is available.
|Offline Offline Offline||32||
The database has been taken offline.
|Recovering Recovering Recovering||8||
The database is going through the recovery process.
|RecoveryPending RecoveryPending RecoveryPending||4||
The database is waiting to go through the recovery process.
|Restoring Restoring Restoring||2||
The database is going through the restore process.
|Shutdown Shutdown Shutdown||128||
The server on which the database resides has been shut down.
|Standby Standby Standby||64||
The database is in standby mode.
|Suspect Suspect Suspect||16||
The database has been marked as suspect. You will have to check the data, and the database might have to be restored from a backup.