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?
mudcow007Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
mudcow007Author Commented:
Update - Thats worked thanks!
plusone3055Commented:
no problem glad it helped :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.