Does your database have leaky connections? It may be slowly killing your performance! Or fastly. Either way killing is bad.
Dynamically Create Restore Script
I decided to be lazy and write something quick and dirty to get the metadata from the msdb backup tables. What had started small and simple, wound up becoming more complicated.