Solved

Restore database from another computer

Posted on 2003-10-29
2
381 Views
Last Modified: 2012-05-04
How to setup automatic restore of the backup which was made on another computer, and path of the folder Data iks not the same?
0
Comment
Question by:TanjaMar
2 Comments
 
LVL 34

Expert Comment

by:arbert
ID: 9643923
What do you mean "automatic restore"?

You can use enterprise manager to setup a scheduled job with TSQL:

RESTORE database yourdatabasenamehere from disk='yourdrive\pathhere'

Brett
0
 
LVL 69

Accepted Solution

by:
Scott Pletcher earned 50 total points
ID: 9644547
If the data files are in a different location, you need to specify the MOVE option also:

RESTORE DATABASE yourDatabaseNameHere
FROM DISK = 'x:\full\path\to\backup\backup.bak'
WITH MOVE 'logical_data_file_name' TO 'operating_system_data_file_name',
                   'logical_log_file_name' TO 'operating_system_log_file_name',
          RECOVERY
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how the fundamental information of how to create a table.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question