LSN of Transaction Log Backups.

The below query will tell us the history of Transaction Log Backups.
SELECT DISTINCT s.database_name, s.first_lsn, s.last_lsn,                        
s.database_backup_lsn, s.backup_start_date, s.backup_finish_date,                        
s.type, s.is_snapshot,y.device_type, y.logical_device_name, y.physical_device_name
FROM msdb..backupset AS s INNER JOIN msdb..backupfile AS f 
ON f.backup_set_id = s.backup_set_id INNER JOIN msdb..backupmediaset AS m 
ON s.media_set_id = m.media_set_id INNER JOIN msdb..backupmediafamily AS y 
ON m.media_set_id = y.media_set_id 
where database_name = 'database_name'

Comments

Popular posts from this blog

System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out

Pre login Handshake or Connection Timeout Period

Transparent Data Encryption(TDE) with Master Key and Certificate in SQL Server