Gets the database status.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
The following table lists the values that are associated with the database status.
The description name.
The database has been automatically closed.
The database is in emergency mode.
The database is inaccessible. The server might be switched off or the network connection has become interrupted.
The database is available.
The database has been taken offline.
The database is going through the recovery process.
The database is waiting to go through the recovery process.
The database is going through the restore process.
The server on which the database resides has been shut down.
The database is in standby mode.
The database has been marked as suspect. The data will need to be checked, and the database might have to be restored from a backup.