Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
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: 1808 | Views in the last 30 days: 6
 
Related Articles
FORUM

restores

restores

FORUM

restore

restore

FORUM

RESTORE

RESTORE

FORUM

restoring dropped table

restoring

FORUM

Restore

Database Restore

Tags
restore    
 
Contribute