Solved

move SQL 2005 DB to SQL 2008

Posted on 2009-04-09
4
368 Views
Last Modified: 2012-05-06
I have two SQL servers running, one 2005 the other 2008.  I am in the process of retiring the 2005 server and need to move my db's over to the 2008 server.  I tried doing a backup in 2005 and restore into 2008 but get errors when I try this.  The error is as follows:

"Restore failed for Server 'SQL'. (Microsoft.SQLServer.SmoExtended)

Additional Information:
System.Data.SqlClient.SqlError: File 'F:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Data\PJIPro.MDF' is claimed by 'PJIPRO_RMHanover_Log'(2) and 'PJIPRO_RMHanover_DATA'(1). The WITH MOVE clause can be used to relocate one or more files.  (Microsoft.SqlServer.Smo)"

The db is called PJIPro.  I checked the path and the data/log files are not there.

I'm not very well versed in SQL so any help I can get would be great.  I've got a number of db's to move, none very large, if there is also a way to batch move them I'd love to know how.

Thanks for the help.
0
Comment
Question by:jer007
[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
  • 2
  • 2
4 Comments
 
LVL 25

Accepted Solution

by:
reb73 earned 250 total points
ID: 24109283
Why not just detach the individual mdf/ldf files in the SQL 2005 server, copy them across and attach them to the SQL 2008 server?
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 24109288
first, post the results from this statement:

restore filelistonly from disk = 'c:\pathtoyourbackupfile.bak'

I'm interested in the name field, and the field that shows the path to the files....once you post those, I'll construct your restore statement for you.
0
 
LVL 25

Expert Comment

by:reb73
ID: 24109334
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 24109365
Note that when you detach/attach, you have to take the database offline...which is always risky business.
0

Featured Post

 Database Backup and Recovery Best Practices

Join Percona’s, Architect, Manjot Singh as he presents Database Backup and Recovery Best Practices (with a Focus on MySQL) on Thursday, July 27, 2017 at 11:00 am PDT / 2:00 pm EDT (UTC-7). In the case of a failure, do you know how long it will take to restore your database?

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

632 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