DatabaseState Enumeration
Enumerates the possible states of the DAC database.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace:  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)
Syntax
'Declaration
<FlagsAttribute> _
Public Enumeration DatabaseState
'Usage
Dim instance As DatabaseState
[FlagsAttribute]
public enum DatabaseState
[FlagsAttribute]
public enum class DatabaseState
[<FlagsAttribute>]
type DatabaseState
public enum DatabaseState
Members
| Member name | Description | |
|---|---|---|
| Normal | Database is available for any operation | |
| Offline | Offline state. The database can only be detached | |
| SnapshotBase | Base of snapshot. The database can only be extracted | |
| Replication | Involved in replication. The database can only be extracted | |
| Unavailable | None of the operations are possible. The database may be renamed, deleted, or unavailable. | |
| DeprecatedCompatLevel | The database cannot be extracted because the database compatibility level is 70 or below. | |
| IsSnapshot | No operations can be performed because the database is a snapshot. | |
| Readonly | The database cannot be upgraded because it is read only. |