Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Restore Sql2000 to Sql2005

Author  Topic 

Sep410
Posting Yak Master

117 Posts

Posted - 2008-08-05 : 13:23:30
Hi,
I need a step by step process to restore SQL 2000 DB to SQL 2005.

Can anyone help me?

Sep

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-05 : 13:32:26
1. Get logins, jobs, and everything else setup on the 2005 instance
2. Backup databases on 2000
3. Restore databases to 2005 (or use detach/attach)
4. Change compatibility level to 90
5. Test

For more detail, do some searching as this has been covered at length already.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Sep410
Posting Yak Master

117 Posts

Posted - 2008-08-05 : 13:47:28
Hi Tara,
I did the same thing but when I want to restore the my backup I get this error:
An exception occured while executing a Transact-SQL statement or batch.
(Microsoft.SqlServer.Express.connectionInfo)

Additional Inoformation
Cannot open backup device 'C:\cfs_backup.bak' .Operationg system error 5(Access is Denied)
Restore headeronly is terminating abnormally.(Microsoft SQL Server,Error:3201)

What is wrong?

Sep
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-05 : 13:50:09
It looks like you don't have proper permissions to the file.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Sep410
Posting Yak Master

117 Posts

Posted - 2008-08-05 : 14:01:11
Tara,
I just need to transfer 44 tables from sql2000 to sql 2005 is there anything else I can use for this purpose?

Sep
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-05 : 14:02:58
Backup/restore or detach/attach are the best methods.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Sep410
Posting Yak Master

117 Posts

Posted - 2008-08-05 : 14:04:06
How should I use detach/attach?

Sep
Go to Top of Page

rohitkumar
Constraint Violating Yak Guru

472 Posts

Posted - 2008-08-05 : 14:04:57
or try using database publishing wizard

http://www.microsoft.com/downloads/details.aspx?familyid=56E5B1C5-BF17-42E0-A410-371A838E570A&displaylang=en
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-05 : 14:06:01
1. Detach the databases using Enterprise Manager or sp_detachdb
2. Copy the files to the 2005 location
3. Attach the databases using Management Studio or sp_attach_db/sp_attach_single_file_db
4. Change compatibility level to 90

Check BOL for more details.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-05 : 14:07:00
quote:
Originally posted by rohitkumar

or try using database publishing wizard

http://www.microsoft.com/downloads/details.aspx?familyid=56E5B1C5-BF17-42E0-A410-371A838E570A&displaylang=en



It is not the better option to use.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -