Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Migrate from sql server 2000 to 2008 r2 - how to

I have a database working on SQL Server 2000. We are now migrating to a new server with SQL Server 2008 r2. Can anyone please point me to some resource or howto? I'm not really finding my way around SQL 2000.

Thank you!

like image 351
Elad Lachmi Avatar asked Apr 11 '11 10:04

Elad Lachmi


People also ask

Can we restore SQL Server 2000 backup to 2012?

No, you cannot migrate it directly from 2000 to 2012. What you can do is install a temporary instance of 2005 OR 2008 oR 2008R2, restore the 2000 database here. Once done you can now upgrade from installed instance by taking the backup of database from that instance and restoring onto sql server 2012.

Is SQL Server 2008 R2 still supported?

Windows Server 2008/2008 R2 and SQL Server 2008/2008 R2 have both met their end-of-life dates: July 9, 2019 for SQL Server 2008/2008 R2 and January 14, 2020 for Windows Server 2008/2008. If you're still running any of those machines, you're doing so at your own risk—especially in this age of cyberattacks.


2 Answers

Basically, what you need to do is:

  • backup your database in SQL Server 2000 to a .bak file
  • move that *.bak file to your new server
  • restore that database onto your new server

You're done! There's really nothing more to it..... just backup (on your old system) and restore (on your new system).

So where exactly is your problem ??

Update: as @Péter correctly mentions: this leaves your database in the SQL Server 2000 compatibility mode. This means: even though you've "migrated" to SQL Server 2008 R2, you can still only use the 2000 features.

In order to see what compatibility mode your database is in, check the sys.databases catalog view:

SELECT * FROM sys.databases WHERE name = 'YourDatabaseName'

One column is called compatibility_level and contains an INT; 80 = SQL Server 2000, 90 = SQL Server 2005, 100 = SQL Server 2008 / 2008 R2 and 110 = SQL Server 2012

In order to change your database to a different compatibility level, use this command:

ALTER DATABASE YourDatabaseNameHere
SET COMPATIBILITY_LEVEL = 100;

This will put your database into the "native" SQL Server 2008 (and 2008 R2) mode and now your migration is complete, you can use all the new SQL Server 2008 R2 features.

like image 103
marc_s Avatar answered Sep 22 '22 06:09

marc_s


I would start by running the Upgrade Advisor against the 2000 server (during low utilization or off hours) to see what recommendations it makes and fully address each: http://msdn.microsoft.com/en-us/library/ms144256.aspx

Here too is a white paper from MS on the topic: http://download.microsoft.com/download/2/0/B/20B90384-F3FE-4331-AA12-FD58E6AB66C2/SQL%20Server%202000%20to%202008%20Upgrade%20White%20Paper.docx

A lot could go wrong...too much to cover in a forum setting. But then again nothing could go wrong...the best plan, test, and then test some more.

like image 33
Orlando Colamatteo Avatar answered Sep 21 '22 06:09

Orlando Colamatteo