I am migrating SQL Server DBs to a new instance.
I have been told that it is possible to dynamically build a RESTORE script from available backups in the system catalog.
Does anyone know of a sample script to do this?
I, personally, use sp_restorecriptgenie by Paul Brewer. Here's the link to the SCC article that has it. Under 'The Procedure'
Basically, once you build the sproc, just run
I actually just used this script about an hour ago so i can do a test restore and verify my backups.