Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 60a0250

Browse files
authored
Merge pull request #13222 from MicrosoftDocs/MikeRayMSFT-patch-4
Clarify when ONLINE database can accept connections
2 parents 04cbb9e + 0cfdf2b commit 60a0250

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/t-sql/functions/databasepropertyex-transact-sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ An expression specifying the name of the database property to return. *property*
8686
|ServiceObjective|Describes the performance level of the database in [!INCLUDE[sqldbesa](../../includes/sqldbesa-md.md)] or [!INCLUDE[ssSDW](../../includes/sssdw-md.md)].|One of the following:<br /><br /> Null: database not started<br /><br /> Shared (for Web/Business editions)<br /><br /> Basic<br /><br /> S0<br /><br /> S1<br /><br /> S2<br /><br /> S3<br /><br /> P1<br /><br /> P2<br /><br /> P3<br /><br /> ElasticPool<br /><br /> System (for master DB)<br /><br /> Base data type: **nvarchar(32)**|
8787
|ServiceObjectiveId|The id of the service objective in [!INCLUDE[sqldbesa](../../includes/sqldbesa-md.md)].|**uniqueidentifier** that identifies the service objective.|
8888
|SQLSortOrder|[!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] sort order ID supported in earlier versions of SQL Server.|0: Database uses Windows collation<br /><br /> >0: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] sort order ID<br /><br /> NULL: Invalid input, or database has not started<br /><br /> Base data type: **tinyint**|
89-
|Status|Database status.|ONLINE: Database is available for query.<br /><br /> **Note:** The ONLINE status may be returned while the database opens and has not yet recovered. To identify when a database can accept connections, query the Collation property of **DATABASEPROPERTYEX**. The database can accept connections when the database collation returns a non-null value. For Always On databases, query the database_state or database_state_desc columns of `sys.dm_hadr_database_replica_states`.<br /><br /> OFFLINE: Database was explicitly taken offline.<br /><br /> RESTORING: Database restore has started.<br /><br /> RECOVERING: Database recovery has started and the database is not yet ready for queries.<br /><br /> SUSPECT: Database did not recover.<br /><br /> EMERGENCY: Database is in an emergency, read-only state. Access is restricted to sysadmin members<br /><br /> Base data type: **nvarchar(128)**|
89+
|Status|Database status.|ONLINE: Database is available for query.<br /><br /> **Note:** The function may return a status of ONLINE while the database opens and has not yet recovered. To identify if an ONLINE database can accept connections, query the Collation property of **DATABASEPROPERTYEX**. The ONLINE database can accept connections when the database collation returns a non-null value. For Always On databases, query the database_state or database_state_desc columns of `sys.dm_hadr_database_replica_states`.<br /><br /> OFFLINE: Database was explicitly taken offline.<br /><br /> RESTORING: Database restore has started.<br /><br /> RECOVERING: Database recovery has started and the database is not yet ready for queries.<br /><br /> SUSPECT: Database did not recover.<br /><br /> EMERGENCY: Database is in an emergency, read-only state. Access is restricted to sysadmin members<br /><br /> Base data type: **nvarchar(128)**|
9090
|Updateability|Indicates whether data can be modified.|READ_ONLY: Database supports data reads but not data modifications.<br /><br /> READ_WRITE: Database supports data reads and modifications.<br /><br /> Base data type: **nvarchar(128)**|
9191
|UserAccess|Indicates which users can access the database.|SINGLE_USER: Only one db_owner, dbcreator, or sysadmin user at a time<br /><br /> RESTRICTED_USER: Only members of db_owner, dbcreator, or sysadmin roles<br /><br /> MULTI_USER: All users<br /><br /> Base data type: **nvarchar(128)**|
9292
|Version|Internal version number of the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] code with which the database was created. [!INCLUDE[ssInternalOnly](../../includes/ssinternalonly-md.md)]|Version number: Database is open.<br /><br /> NULL: Database has not started.<br /><br /> Base data type: **int**|

0 commit comments

Comments
 (0)