Restoring from a single transaction log backup, containing multiple backups. Currently using restore by specifying FILE in order.
RESTORE LOG db from DISK='c:\trans.bak' WITH NORECOVERY, FILE=1;
RESTORE LOG db from DISK='c:\trans.bak' WITH RECOVERY, FILE=2;
The above approach works. Is it possible to restore each sequence automatically with a single RESTORE and let SQL server process them in order? Or is there another way to handle restoring all of the backups contained in the single transaction file?
Not using different file names for log backups because there are many databases and 4 transaction backups through the day (yes I know about the risk of corrupt files, please no lectures). I want to minimize o/s file naming/creating/checking/processing etc. at both backup and restore time, and I'm looking for a way to manage and automate restores.
(Windows Server 2019, SQL Server 2016, Full recovery)