Expand Minimize
This topic has not yet been rated - Rate this topic

DatabaseStatus Enumeration

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.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SqlEnum (in Microsoft.SqlServer.SqlEnum.dll)
[FlagsAttribute]
public enum DatabaseStatus
Member nameDescription
NormalThe database is available.
RestoringThe database is going through the restore process.
RecoveryPendingThe database is waiting to go through the recovery process.
RecoveringThe database is going through the recovery process.
SuspectThe database has been marked as suspect. You will have to check the data, and the database might have to be restored from a backup.
OfflineThe database has been taken offline.
StandbyThe database is in standby mode.
ShutdownThe server on which the database resides has been shut down.
EmergencyModeThe database is in emergency mode.
AutoClosedThe database has been automatically closed.
InaccessibleThe database is inaccessible. The server might be switched off or the network connection has been interrupted.

The DatabaseStatus enumeration class is served by the Status property.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.