Database Restore Error SQL Server 2000

Somebody please help me here.

(1)
RESTORE FILELISTONLY
FROM DISK = 'E:\Mydatabasebackup_Backups\Mydatabase_db_201201070203.BAK'
GO

Message Result:            (here are the letter drive from Production environment)
Mydatabase_Data      M:\----------DataFiles\---------------Data1.mdf            
Mydatabase_Log      F:\----------DataFiles\---------------Log1.ldf                  
Mydatabase_Log2      G:\----------DataFiles\---------------_Log2_Log.LDF         


(2)
Then, I did the following by specifying the drives on the QA box

Again, QA does not have log2 as in Prod Server environment

Also, the database name in Prod is MyNameRcquirer, but in QA it is MyNameRcquier. (missing letter r)?
 
Now,noticed the name in production is different from the database name in QA. Decided to specify WITH REPLACE. Got the same error below.  

USE Mydatabase
GO
RESTORE DATABASE Mydatabase
FROM DISK = 'E:\Mydatabase_Backups\Mydatabase_db_201201070203.BAK'
WITH MOVE 'Mydatabase_Data' TO 'D:\SQLServerDataFiles\MydatabaseData1.mdf',
MOVE 'Mydatabase_Log' TO 'D:\SQLServerDataFiles\MydatabaseLog1.ldf',
MOVE 'Mydatabase_Log2' TO 'D:\SQLServerDataFiles\Mydatabase_Log2_Log.LDF'
GO


Error Message:
Server: Msg 5105, Level 16, State 2, Line 1
Device activation error. The physical file name 'D:\SQLServerDataFiles\MydatabaseData1.mdf'
may be incorrect.
Server: Msg 3156, Level 16, State 1, Line 1
File 'Mydatabase_Data' cannot be restored to 'D:\SQLServerDataFiles\MydatabaseData1.mdf'.
Use WITH MOVE to identify a valid location for the file.
Server: Msg 5105, Level 16, State 1, Line 1
Device activation error. The physical file name 'D:\SQLServerDataFiles\MydatabaseLog1.ldf'
may be incorrect.
Server: Msg 3156, Level 16, State 1, Line 1
File 'Mydatabase_Log' cannot be restored to 'D:\SQLServerDataFiles\MydatabaseLog1.ldf'.
Use WITH MOVE to identify a valid location for the file.
Server: Msg 5105, Level 16, State 1, Line 1


FavorableAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

arnoldCommented:
What is the source of the backup file and what system is it being restored on?  Have you tried the GUI restore option?
you can not restore newer schemas on older systems.
The paths might not be valid i.e. d: or d:\sqlserverdatafiles
Check permissions on the locations as well.
0
TempDBACommented:
Does, d drive or 'D:\SQLServerDataFiles\'  exists in the server where you are restoring the database?
0
FavorableAuthor Commented:
D:drive exist on the server ok.
What I have done to resolve the problem. Instead of going D\sqlserverdatafiles\bla\bla, I went D\mydatafiles. It resolved the problem. I guess in 2000 one cannot replace old schema with new from production.
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

David ToddSenior DBACommented:
Hi,

I would have expected this to fail for two reasons - First: Cannot restore database when there are active connections. You just created an active connection. Second: Generally need to use the replace clause for a backup from another server.

Try
USE tempdb --Mydatabase
GO
RESTORE DATABASE Mydatabase
FROM DISK = 'E:\Mydatabase_Backups\Mydatabase_db_201201070203.BAK'
WITH
    replace
    , MOVE 'Mydatabase_Data' TO 'D:\SQLServerDataFiles\MydatabaseData1.mdf'
    , MOVE 'Mydatabase_Log' TO 'D:\SQLServerDataFiles\MydatabaseLog1.ldf'
    , MOVE 'Mydatabase_Log2' TO 'D:\SQLServerDataFiles\Mydatabase_Log2_Log.LDF'
GO

HTH
  David
0
TempDBACommented:
Yup, I second dtodd for the use of replace.
Or else you can't specify with the same name in the same path. If you have to create the data and log file in the same path with the same name, you need to either delete the earlier one or replace it. Again for deleting, the files shouldn't be in use. And its not just with 2000, it is there in all other versions. MSDN has following thing to say:-
 To avoid errors and unintended consequences, before the restore operation find out which files are created automatically by the restore operation, because:
.
.
The file names may already exist on the computer, causing an error.

Ref:- http://msdn.microsoft.com/en-us/library/ms190436.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
FavorableAuthor Commented:
Thanks everyone.  All contribution noted in case of next time.
0
FavorableAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.