Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Move Database between computers, Backup/Restore?

Author  Topic 

blinton25
Yak Posting Veteran

90 Posts

Posted - 2004-02-21 : 16:40:00
Hello,

How are you today?

I wish to create a copy of my SQL Server 2000 database on another machine. I assumed that I could backup my database from Machine1, burn the file created on to a CD-RW, take it to Machine2, and restore it. I opened Enterprise Manager, Tools>Restore Datbase>From Device>Select Devices>Add

selected the backup file and ensured that Database-complete was selected.

However, I got the following error message:

"Device activation error. The physical file name 'c:\Program Files\Microsoft SQL Server\MSSQL\data\T.mdf may be incorrect. File 'T_dat cannot be restored to 'C:\Program Files\Microsoft SQL Server\MSSQL\data\T.mdf. Use WITH MOVE to identify a valid location for the file.
Device activation error. The physical file name 'c:\Program Files\Microsoft SQL Server\MSSQL\data\T.ldf may be incorrect. File 'T_log cannot be restored to 'C:\Program Files\Microsoft SQL Server\MSSQL\data\T.ldf. Use WITH MOVE to identify a valid location for the file.
RESTORE DATABASE is terminating abnormally."

How should I go about moving my database?

nr
SQLTeam MVY

12543 Posts

Posted - 2004-02-21 : 17:27:25
exactly what it says.
A restore by default will create the files in the same path as the backup - this doesn't exist in the destination server.
If you look at restore database in bol there is a move option to change the location of the files.

In enterprise manager in the restore dualog there is a second tab which gives the location of these files - just overwite the path with an existing one before clicking OK.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

blinton25
Yak Posting Veteran

90 Posts

Posted - 2004-02-22 : 00:06:27
Hello,

My path was incorrect, once I specified a valid one the restore worked ok.

Thanks.
Go to Top of Page
   

- Advertisement -