I have the below script on SQL Server Management Studio to check database backup file
declare @backupSetId as int select @backupSetId = position from msdb..ba