You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|backup_file_id|**uniqueidentifier**|ID of the generated backup file. Not null|
37
-
|database_guid|**sql_variant**|Logical Database ID of the [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)] on which the operation is performed. Not Null.|
38
-
|physical_database_name|**sql_variant**|Name of the Physical [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)] on which the operation is performed.|
39
-
|server_name|**sql_variant**|Name of the Physical server on which the [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)] which is being backed up is present. Not Null.|
40
-
|backup_start_date|**datetime**|Timestamp when the Backup operation started|
41
-
|backup_finish_date|**datetime**|Timestamp when the Backup operation finished|
42
-
|backup_type|**nvarchar(60)**|Type of Backup<br /><br /> D = Full Database Backup<br />I = Incremental Backup<br />L = Log Backup|
43
-
|in_retention|**tinyint**|Backup Retention Status. Tells whether backup is within retention period<br /><br />1 = In Retention <br />0 = Out of Retention|
37
+
|database_guid|**uniqueidentifier**|Logical Database ID of the [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)] on which the operation is performed. Not Null.|
38
+
|physical_database_name|**nvarchar(128)**|Name of the Physical [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)] on which the operation is performed.Not Null|
39
+
|server_name|**nvarchar(128)**|Name of the Physical server on which the [!INCLUDE[ssSDSfull](../../includes/sssdsfull-md.md)] which is being backed up is present. Not Null.|
40
+
|backup_start_date|**datetime2(7)**|Timestamp when the Backup operation started. Not Null.|
41
+
|backup_finish_date|**datetime2(7)**|Timestamp when the Backup operation finished. Not Null.|
42
+
|backup_type|**char(1)**|Type of Backup<br /><br /> D = Full Database Backup<br />I = Incremental or Differential Backup<br />L = Log Backup. Not Null.|
43
+
|in_retention|**bit**|Backup Retention Status. Tells whether backup is within retention period<br /><br />1 = In Retention <br />0 = Out of Retention. Null.|
44
44
45
45
## Permissions
46
46
Requires VIEW DATABASE STATE permission on the database.
47
47
48
48
## Remarks
49
-
Backups retained and shown in Backup history view depend on configured backup retention. Some backups older than the retention period, in_retention=0, are also shown in dm_database_backups view. They're needed to do point in restore within the configured retention.
49
+
Backups retained and shown in Backup history view depend on configured backup retention. Some backups older than the retention period, in_retention=0, are also shown in dm_database_backups view. They're needed to do point in restore within the configured retention.
50
+
51
+
## Example
52
+
Show list of all active backups for the current database ordered by backup finish date.
0 commit comments