DatabaseStatus 列舉
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.
此列舉有一個允許其成員值為位元組合的 FlagsAttribute 屬性。
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.SqlEnum (在 Microsoft.SqlServer.SqlEnum.dll 中)
語法
'宣告
<FlagsAttribute> _
Public Enumeration DatabaseStatus
'用途
Dim instance As DatabaseStatus
[FlagsAttribute]
public enum DatabaseStatus
[FlagsAttribute]
public enum class DatabaseStatus
[<FlagsAttribute>]
type DatabaseStatus
public enum DatabaseStatus
成員
成員名稱 | 說明 | |
---|---|---|
AutoClosed | The database has been automatically closed. | |
EmergencyMode | The database is in emergency mode. | |
Inaccessible | The database is inaccessible. The server might be switched off or the network connection has been interrupted. | |
Normal | The database is available. | |
Offline | The database has been taken offline. | |
Recovering | The database is going through the recovery process. | |
RecoveryPending | The database is waiting to go through the recovery process. | |
Restoring | The database is going through the restore process. | |
Shutdown | The server on which the database resides has been shut down. | |
Standby | The database is in standby mode. | |
Suspect | 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. |
備註
The DatabaseStatus enumeration class is served by the Status property.