We recommend using Visual Studio 2017

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)

public enum DatabaseState

Member nameDescription
NormalDatabase is available for any operation
OfflineOffline state. The database can only be detached
SnapshotBaseBase of snapshot. The database can only be extracted
ReplicationInvolved in replication. The database can only be extracted
UnavailableNone of the operations are possible. The database may be renamed, deleted, or unavailable.
DeprecatedCompatLevelThe database compatibility level is deprecated.
IsSnapshotDatabase is a snapshot of another database.
ReadonlyThe database is read only.