Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin.
Search for scripts directly from SSMS, and instantly access any saved scripts in your
SSC briefcase from the favorites tab.
Download now (direct download link)
Thank this author by sharing:
By Jim Youmans,
If you have a database with multiple files that you need to restore from one server to another, it can be a real pain. But this script makes it easy. Just put in the file path of where your backup file lives and it will create a fully formed restore script for you. Just update the location of where you want to restore the backup to and you are good to go.
This is especially helpful when you have a database with a dozen or more file groups.
I did not write this and I don't want to take credit for it, but it is a great tool to have. Whoever JenS@Microsoft is, my hat is off to them.