• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 330
  • Last Modified:

Copy Db from Sql 2000 to Sql 2008R2

Right i need to remove databases from our old SQL2000 server to our new 2008R2 server

i backed up one of the databases (on 2000), then recreated a db on the R2 server (calling the db the same name) then tried to restore to the new server.

when i did i received the below error


Restore failed for server 'SQLR2'. (microsoft.SqlServer.SmoExtended)

Additional Information:

System.Data.SqlClient. SqlError: The backup set holds a backup of a database other than the existing 'clockings' database. (Microsoft.SqlServer.Smo)

anyone any ideas?
0
mudcow007
Asked:
mudcow007
  • 2
  • 2
1 Solution
 
plusone3055Commented:
have you followed all the steps below  ?
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/c865c6e5-59f0-4fe1-8110-23c1b67d6d45/how-to-copy-databases-from-sql-server-2000-to-sql-server-2008


1. Connect with your SQL Server Management Studio to the SQL 2000 box and create a backup of your database
 
BACKUP DATABASE [YourDB] TO DISK = 'Path\Backupfile.bak'
2. Copy the backup file to the new server
 
3. Restore the database on the new server
 (I would suggest to create the database first as an empty container. This would avoid to use the MOVE option in the RESTORE!)
 
Concerning my above recommendation the restore would work as follows:
 CREATE DATABASE [YourDB];
GO

RESTORE DATABASE [YourDB] FROM DISK = 'Path\BackupFile.bak' WITH REPLACE;
GO

ALTER AUTHORIZATION ON DATABASE::YourDB TO sa;
The above script creates a datbase first and afterwards it will be replaced with the formerly created backup. Due to the fact that it uses the option [REPLACE] it uses the pathes and files from the formerly created database.
 
If you are working with sql login you have to make sure that all sql accounts will be transferred correctly to the new location. Therefore I would strongly recommend to use the sp sp_help_revlogin which has to be executed on the SQL2000 box to script the logins. Copy the result to the new box and execute it on the SQL 2008 box.
0
 
mudcow007Author Commented:
Hi plusone3055

thanks for the reply

im not exactly "up" on SQL commands, but this is what i have done

On 2000 server

right click on db > right click > all Tasks > backup db > in options "verify backup" & set name > OK

server 2008R2

new database (same as 2000 db) > right click > Tasks > restore > database > "from device" - then i point the wizard at the backup file"

this is when i receive the error
0
 
mudcow007Author Commented:
Update - Thats worked thanks!
0
 
plusone3055Commented:
no problem glad it helped :)
0
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.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now