sql server 2000 to 2008 (migrate vs upgrade)

12
Migration from SQL Server 2000 to SQL Server 2008

Upload: riadelidrissi

Post on 11-May-2017

227 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: SQL Server 2000 to 2008 (MIgrate vs Upgrade)

Migration from SQL Server 2000 to SQL Server 2008

Page 2: SQL Server 2000 to 2008 (MIgrate vs Upgrade)

May 3, 2023

Upgrade vs Migrate

• Upgrade (or in-place upgrade):– Updates an existing installation while preserving user data– Instance name remains the same after upgrade– Automated process

• Migration (or side-by-side migration):– Starts with a new installation– New & old instance reside side-by-side– Objects are copied from the old to new instance– Mostly a manual process

Page 3: SQL Server 2000 to 2008 (MIgrate vs Upgrade)

May 3, 2023

In-place Upgrade

SQL Server 2000Instance: foo

Upgrade

SQL Server 2008Instance: foo

SQL Server Upgrade Advisor

Page 4: SQL Server 2000 to 2008 (MIgrate vs Upgrade)

May 3, 2023

•Pros– Easier, faster, less headache for small systems– Requires no additional hardware– Applications remain pointing to old instance

•Cons– Less granular control over upgrade process– Instance remains offline during part of upgrade– Not best practice for all components

•Analysis Services cubes are recommended to be migrated

Upgrade – Pros and Cons

Page 5: SQL Server 2000 to 2008 (MIgrate vs Upgrade)

May 3, 2023

Migration

SQL Server 2000Instance: foo

Migrate

SQL Server 2008Instance: Bar

SQL Server Migration Assistant

Page 6: SQL Server 2000 to 2008 (MIgrate vs Upgrade)

May 3, 2023

•Pros– Migration provides more granular control over the

upgrade process– Having new and old instances side-by-side helps with

testing & verification– Legacy instance remains online during migration– Flexibility to implement migration with failover

•Cons– May require new or additional hardware resources– Applications need to be directed to new instance

Migration – Pros and Cons

Page 7: SQL Server 2000 to 2008 (MIgrate vs Upgrade)

May 3, 2023

Migrating a SQL Server installation to SQL Server 2008 is useful if

Migration Benefits

You encounter an upgrade blocker

Have a large scale deployment

Stringent up-time requirements

If you are changing the hardware or topology of your installation.

Page 8: SQL Server 2000 to 2008 (MIgrate vs Upgrade)

May 3, 2023

Pre-Migration

Considerations

Installation Migration

Post-Migration

Considerations

Migration Steps

Page 9: SQL Server 2000 to 2008 (MIgrate vs Upgrade)

May 3, 2023

1. Create Checklists. Refer to Deprecated, Discontinued or breaking changes and list these as part of the checklist.

2. Create Acceptance test criteria. Baseline performance where required.

3. Use tools to identify deprecated / Discontinued features or breaking changesRun Upgrade Advisor. Use System Monitor—SQL Server: Deprecated Features ObjectBest Practices Analyzer for SQL Server 2000

4. Fix issues.

5. Plan for Backup / Rollback in case Migration not sucessful.

Migration Methodology

Page 10: SQL Server 2000 to 2008 (MIgrate vs Upgrade)

May 3, 2023

•Migrate– Database

• Backup and restore• Manual schema rebuild and data export/import• Log shipping• Copy Database Wizard

– Reporting• Move the report server database new SQL Server 2008 installation.

– DTS • DTS Package Migration Wizard. Note that some DTS features cannot be

migrated directly into SSIS– Analysis Services

• Analysis Services Migration Wizard•Perform Acceptance criteria. Rollback if not successful.•Post Deployment steps –

– Update Statistics– Rebuild Cubes

Methodology - Continued

Page 11: SQL Server 2000 to 2008 (MIgrate vs Upgrade)

May 3, 2023

Tools Purpose

Upgrade Advisor Helps identify any issues that could affect migration

SQL Server 2008 Upgrade Assistant

The SQL Server 2008 Upgrade Assistant is an external tool that lets you determine in a test environment how an application currently running on SQL Server 2000 or SQL Server 2005 will run on SQL Server 2008.

Best Practices Analyzer for SQL Server 2000 and SQL Server 2005

Before you install SQL Server 2008, you should also run the SQL Server Best Practices Analyzer (BPA) against your current legacy instances of SQL Server. If bad or questionable practices exist, you could address them before the upgrade, moving the fixes through test and into production.

System Monitor—SQL Server: Deprecated Features Object

SQL Server 2008 provides a new System Monitor (Perfmon) counter called SQLServer:Deprecated Features to monitor whether your application is submitting commands to the SQL Server 2008 Database Engine that are scheduled for removal from SQL Server in future releases

Tools – Microsoft

Page 12: SQL Server 2000 to 2008 (MIgrate vs Upgrade)

May 3, 2023

Tools Purpose

Analysis Services Migration Wizard

You can use the Analysis Services Migration Wizard to upgrade Microsoft SQL Server 2000 Analysis Services databases to Microsoft SQL Server 2008 Analysis Services. During migration, the wizard copies SQL Server 2000 Analysis Services database objects and then re-creates them on an instance of SQL Server 2008 Analysis Services.

DTS Package Migration Wizard

Integration Services provides the DTS Package Migration Wizard for migrating SQL Server 2000 Data Transformation Services (DTS) packages that were created by using the DTS tools and object model.

Tools – Continued