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 Database from network location

By Jano Petras,

Restore DB from network path

When using SQL Server management studio and attempting to restore the DB using the restore dialog, it appears that the backup file must be on the local disk/volume before it can be used for restore.

This is actually not true - it can sit on network path saving sometimes hours in copying backup file accross to local folders.

This script does the trick. Check on the SQL Server documentation about the meaning of WITH REPLACE and various other options that are avaialble with RESTORE DATABASE statement.

Total article views: 2774 | Views in the last 30 days: 1
 
Related Articles
FORUM

restores

restores

FORUM

restore

restore

FORUM

RESTORE

RESTORE

FORUM

restoring dropped table

restoring

FORUM

Restore

Database Restore

Tags
backup and restore    
restore    
 
Contribute