Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

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)

Restore Script Generator

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.

Total article views: 1600 | Views in the last 30 days: 23
 
Related Articles
FORUM

restores

restores

FORUM

restore

restore

FORUM

RESTORE

RESTORE

FORUM

restoring dropped table

restoring

FORUM

Restore

Database Restore

Tags
restore    
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones