Status Property (Database)
This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.
The Status property returns component execution or integrity state information.
Interpret the Status property return value using these values.
All database status constants are combined by using an OR logical operator.
Emergency mode has been initiated on the referenced database.
SQLDMODBStat_Loading, SQLDMODBStat_Offline, SQLDMODBStat_Recovering, and SQLDMODBStat_Suspect are combined using an OR logical operator.
Database loading is in progress on the referenced database.
The referenced database is available for use.
The feferenced database has been placed offline by a system or user action.
Database recovery is in progress on the referenced database.
The referenced database is defined on a standby server.
Database integrity is suspect for the referenced database.