12
Module 5: Upgrading to SQL Server 7.0

Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level

Embed Size (px)

Citation preview

Page 1: Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level

Module 5:Upgrading to

SQL Server 7.0

Page 2: Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level

Overview

Planning an Upgrade

Preparing to Upgrade

Verifying the Upgrade

Setting a Compatibility Level

Page 3: Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level

Planning an Upgrade

Upgrade Requirements

Performing the Upgrade

Selecting Upgrade Options

Identifying Potential Upgrade Issues

Page 4: Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level

Upgrade Requirements

ComponentComponentComponentComponent RequirementsRequirementsRequirementsRequirements

Operating systemOperating system Windows NT Server Enterprise Edition 4.0 with SP4 or laterWindows NT Server 4.0 with SP4 or later

Windows NT Server Enterprise Edition 4.0 with SP4 or laterWindows NT Server 4.0 with SP4 or later

Windows NTWindows NT

Versions ofSQL Server

Versions ofSQL Server

SQL Server 6.0 with SP3 or laterSQL Server 6.5 with SP3 or later

SQL Server 6.0 with SP3 or laterSQL Server 6.5 with SP3 or later

Available disk spaceAvailable disk spaceAbout 1.5 times the size of the existing SQL Server 6.x databasesAbout 1.5 times the size of the existing SQL Server 6.x databases

Network protocolsNetwork protocols Named PipesPipe\Sql\Query (default named pipe)

Named PipesPipe\Sql\Query (default named pipe)

Page 5: Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level

Performing the Upgrade

The SQL Server Upgrade Wizard Speeds database configuration and data transfer Retains two separate and independent versions of

SQL Server after upgrading Switching Between Versions of SQL Server

Upgrade Scenarios

Single computer (named pipes or tape) Computer-to-computer

Page 6: Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level

Selecting Upgrade Options

System Data

User Databases

Database Configuration

File characteristics

Scripting code page

ANSI NULL

Quoted identifiers

Page 7: Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level

Identifying Potential Upgrade Issues

Object Owners Without Login Accounts

Objects with Inaccurate or Missing Entry in syscomments

Server Name Is NULL

Stored Procedures That Modify System Tables

Tables with NULL as a Column Name

No CREATE Permissions for the Object Owner

Custom Sort Orders

Incorrect Upgrade Sequence for Replication Servers

Page 8: Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level

Preparing to Upgrade

Run DBCC and Back Up All Databases

Set the tempdb Database to at Least 10 MB

Update the master Database if You Transfer SQL Server 6.x Databases to a New Computer

Disable Any Startup Stored Procedures

Stop Replication and Empty the Replication Log

Shut Down All SQL Server Applications and Services

Page 9: Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level

Verifying the Upgrade

Viewing the Log Files

Files with .ok or .out extension indicate instances when SQL Server successfully created objects

Files with .err extension indicate instances when SQL Server did not create objects

Removing SQL Server

Verify the success of the upgrade before you remove SQL Server 6.x

Optionally, remove SQL Server 6.x to save disk space when you upgrade

Page 10: Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level

Setting a Compatibility Level

Initial Compatibility Level Settings

SQL Server now supports version compatibility on the database level

The SQL Server Upgrade wizard sets the initial compatibility level for each database

Setting Another Compatibility Level

EXEC sp_dbcmptlevel 'Northwind' 70BACKUP DATABASE Northwind TO DISK = 'C:\mybackup.bac'

Page 11: Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level

Lab 5.1: Upgrading a SQL Server 6.5 Database

Page 12: Module 5: Upgrading to SQL Server 7.0. Overview Planning an Upgrade Preparing to Upgrade Verifying the Upgrade Setting a Compatibility Level

Review

Planning an Upgrade

Preparing to Upgrade

Verifying the Upgrade

Setting a Compatibility Level