In this post, i want to populate good to know information about log backup in SQL Server.
Query to know the history of transaction log backup.
SELECT bs.backup_start_date, bs.backup_finish_date, *
FROM msdb..backupfile bf
JOIN msdb..backupset bs ON bf.backup_set_id = bs.backup_set_id
WHERE bf.File_Type = 'L'
OR using
select database_name, max(backup_finish_date)
from msdb..backupset
where type = 'L'
group by database_name
Query to know the history of transaction log backup.
SELECT bs.backup_start_date, bs.backup_finish_date, *
FROM msdb..backupfile bf
JOIN msdb..backupset bs ON bf.backup_set_id = bs.backup_set_id
WHERE bf.File_Type = 'L'
OR using
select database_name, max(backup_finish_date)
from msdb..backupset
where type = 'L'
group by database_name
Detailed reference for above query : Link
How often we should take transaction log backup: Link
Recover data from transaction log backup: Link
No comments:
Post a Comment