| Author |
Topic |
|
BellaScout
Starting Member
25 Posts |
|
|
sodeep
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2009-02-18 : 15:43:13
|
| Restore under different name with MOVE option. |
 |
|
|
BellaScout
Starting Member
25 Posts |
Posted - 2009-02-18 : 16:41:48
|
| where is the Move option? |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
BellaScout
Starting Member
25 Posts |
Posted - 2009-02-18 : 17:00:19
|
| I do not see Move option on Options page only restore options... |
 |
|
|
BellaScout
Starting Member
25 Posts |
Posted - 2009-02-18 : 17:09:03
|
| I don't understand what the move does? I'm trying to restore a .bak file to a SQL Server 2005 existing database. |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
BellaScout
Starting Member
25 Posts |
Posted - 2009-02-18 : 17:30:04
|
| The "Restore As" path contains an mdf file that is different from the "Original File Name" mdf file name. I must be missing some information. The "Original" and "Restore as" do not contain the same file names. I still get the error message. |
 |
|
|
BellaScout
Starting Member
25 Posts |
Posted - 2009-02-18 : 17:33:15
|
| This is the script:RESTORE DATABASE [METS_DEV_V1] FROM DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\METS_DEV.bak' WITH FILE = 6, MOVE N'METS_DEV' TO N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\METS_DEV_V1.mdf', MOVE N'METS_DEV_log' TO N'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\METS_DEV_V1.ldf', NOUNLOAD, STATS = 10GOand here is the error:Msg 3154, Level 16, State 4, Line 1The backup set holds a backup of a database other than the existing 'METS_DEV_V1' database.Msg 3013, Level 16, State 1, Line 1RESTORE DATABASE is terminating abnormally. |
 |
|
|
sodeep
Master Smack Fu Yak Hacker
7174 Posts |
Posted - 2009-02-18 : 17:38:48
|
| Restore with different name and change the location of MDF and LDF file. |
 |
|
|
BellaScout
Starting Member
25 Posts |
Posted - 2009-02-18 : 17:47:35
|
| I changed the name of the RESTORE DATABASE to a non-existent database and it did work, but can't I restore into an existing "different" database? |
 |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
|
|