| title | sys.dm_server_suspend_status (Transact-SQL) | ||||
|---|---|---|---|---|---|
| description | Reference documentation to explain sys.dm_server_suspend_status (Transact-SQL) dynamic management view. | ||||
| author | MikeRayMSFT | ||||
| ms.author | mikeray | ||||
| ms.date | 09/29/2022 | ||||
| ms.service | sql | ||||
| ms.subservice | system-objects | ||||
| ms.topic | reference | ||||
| f1_keywords |
|
||||
| helpviewer_keywords |
|
||||
| dev_langs |
|
[!INCLUDE sqlserver2022]
Returns a row for each database in a suspended state. For more information, see Create a Transact-SQL snapshot backup. Introduced in [!INCLUDE sssql22-md].
| Column name | Data type | Description |
|---|---|---|
| db_id | int | ID of the database that is suspended for snapshot backup. |
| db_name | sysname | Name of the database suspended for snapshot backup. |
| suspend_session_id | tinyint | Identifies the session that suspended the database for snapshot backup. |
| suspend_time_ms | bigint | Time elapsed (in milliseconds) since the database has been suspended for snapshot backup. |
| is_diff_map_cleared | bit | false if the database has been suspended for snapshot backup in COPY_ONLY mode, true otherwise. |
| is_write_io_frozen | bit | true if the write io on the database has been frozen when the database is suspended for snapshot backup, false otherwise. |
Principals must have the VIEW SERVER PERFORMANCE STATE permission.
[!INCLUDEssCatViewPerm] For more information, see Metadata Visibility Configuration.
BACKUP (Transact-SQL) DATABASEPROPERTYEX (Transact-SQL) SERVERPROPERTY (Transact-SQL)