Upload
alberta-floyd
View
218
Download
2
Embed Size (px)
Citation preview
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
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)
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
Selecting Upgrade Options
System Data
User Databases
Database Configuration
File characteristics
Scripting code page
ANSI NULL
Quoted identifiers
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
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
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
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'
Lab 5.1: Upgrading a SQL Server 6.5 Database
Review
Planning an Upgrade
Preparing to Upgrade
Verifying the Upgrade
Setting a Compatibility Level