restore on sql server 2012 not creating new mdf and ldf file

Here is my situation.  as far as me getting here it doesnt matter cause its confusing.

1 sql instance involved.
there is one database that i tried to make a copy of and restore it as another database.  
i accidentally restored the oringinal database i made a copy of to a different mdf and ldf file.....
the database still works.  but now the mdf file and the ldf file are now the name of the intended new database copy... which never was created from the restore in the first place.

original database = soccer
attempted copy of original database was going to be = football

orginal database ldf and mdf file names were.  soccer.mdf and soccer.ldf
now the original database ldf and mdf file names are football.mdf and football.ldf

everytime i restore the backup ontop of the soccer database... the mdf and ldf file names will not change!

logical file name   file type     original file name    restore as
soccer                    rows data   soccer.mdf              soccer.mdf
soccer_log             log                soccer_log.ldf         soccer_log.ldf          

the restore as   soccer.mdf stays as football.mdf  

what the heck?
Who is Participating?
Scott PletcherSenior DBACommented:
If you want to change file names when restoring, you must specify a separate WITH MOVE clause for each file to be renamed.

FROM DISK = '<backup_file>'
MOVE 'soccer' TO '<path>\football.mdf',
MOVE 'soccer_log' to <path>\'football.log'
Vitor MontalvãoMSSQL Senior EngineerCommented:
jamesmetcalf74, do you still need help with this question?
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.

All Courses

From novice to tech pro — start learning today.