Solved

Restore database from another computer

Posted on 2003-10-29
2
380 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
Comment Utility
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:
ScottPletcher earned 50 total points
Comment Utility
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How can I transfer data from MS Word to MS SQL tables? 4 27
sql query 7 34
.htaccess file settings 4 30
c# code 19 55
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now