Solved

restore 2005 sql .bak to 2005 or 2008 sql server

Posted on 2012-03-13
5
600 Views
Last Modified: 2012-03-15
I keep receiving existing database error either in the wizard or thru the query.  here is what I entered and received back

RESTORE DATABASE Patra
 FROM DISK = 'E:Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Backup\Patra_backup_201203052200.bak'
 WITH REPLACE, MOVE 'Patra' TO 'E:Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\data\Patra.mdf',
 MOVE 'Patra_log' TO 'E:Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\data\Patra_log.ldf'

Msg 28102, Level 16, State 1, Line 2
Batch execution is terminated because of debugger request.
Msg 3154, Level 16, State 4, Line 2
The backup set holds a backup of a database other than the existing 'Patra' database.
Msg 3013, Level 16, State 1, Line 2
0
Comment
Question by:onyxa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 500 total points
ID: 37715551
Using the wizard you have to go to the options page and specify overwrite existing database.
0
 

Author Comment

by:onyxa
ID: 37715607
I have done that on 2005 and 2008 and still receive the same error.  I have attached a screenshot and you can see the checkbox is marked.
pic.jpg
0
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 37715774
Ensure your destination paths are correct you seem to be missing the \ after the E: in the above tsql.
0
 
LVL 29

Expert Comment

by:Paul Jackson
ID: 37715778
Only other workaround I can think of, is to backup the target database, then delete it and then restore your database backup.
0
 

Author Comment

by:onyxa
ID: 37715920
thanks.  didn't work.
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are trying to access the server, have you ever encountered "The terminal server has exceeded the maximum number of allowed connection" error?  or "The user is attempting to log on to a Terminal Server in Remote Administration mode, but the …
Microsoft has released remote PowerShell capabilities to all commercial Office 365 customers. So you can be controlled via PowerShell and not from the Office 365 admin center Download Windows PowerShell Module for Lync Online http://www.micros…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

623 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