SQL Clone
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)

Generate Restore script for multiple databases

By Taranjit Singh,

This script can be used for generating a restore script for multiple databases simuntaneoulsy in scenarion like restoring databases from producion to dev/uat environment, or automate any such restore.
Execute the script in production or source environment  and this will generate restore script for all the user databases.

Total article views: 1309 | Views in the last 30 days: 4
Related Articles

Script to Get the Database Restore history

Script to get the Database restore history details including with the files by which the database is...


Backup & Restoration Script

This script provides very useful information about database backup and restoration.


Database Snapshot Create/Drop/Restore SQL Script.

Database Snapshot Creat/Drop/Restore SQL Script for Single or multiple data files of databases.


Generate RESTORE DATABASE Script without Using CMDSHELL

Use this script to generate RESTORE DATABASE scripts for all .BAK backup files from backup location ...


Script to Restore Entire database from a directory

Script to restore the entire databases from the backup directory just by passing the backup director...