I'm new to SQL, so let me explain my scenario :
My company wants to achieve RPO(recovery point obj.) of 15 min, so I was assigned a task of generating RPO report which is displaying information in a presentable manner.I work in a DR(disaster recovery, secondary datacenter) site which host secondary database
and primary operation here is log shipping
SIMPLE WAY : SQL server management studio -> right click req. database -> Reports -> Transaction log shipping status
Now they want me to modify the report so that it will display in hh:mm:ss format of last backup, copy and restore and not as when the last restore,copy....etc. happen.
so req format:
last restored file : (say) x.trn
database name last backup time last copy time last restore time RPO(restore - backup) Status(good if RPO<15min)
abc hh:mm:ss hh:mm:ss hh:mm:ss y min good for eg.