As part of your upgrade plan, you should analyze the software requirements and address any upgrade considerations. You must also perform certain tasks to prepare the SQL Server 6.x database for the upgrade process. This lesson describes how to prepare for the upgrade.
After this lesson, you will be able to
- Describe the upgrade process
- Identify and address potential issues before upgrading a database
Estimated lesson time: 15 minutes
The SQL Server Upgrade Wizard automates the process of upgrading SQL Server 6.x databases to SQL Server 7. You can use other tools such as Data Transformation Services or the bcp command-prompt utility to move a production database to SQL Server 7 manually. However, using the SQL Server Upgrade Wizard makes it relatively easy to configure and transfer data, and it accomplishes the upgrade more rapidly than other methods.
The SQL Server Upgrade Wizard can transfer schema, objects, and data as well as logins and database users. It also transfers replication settings, SQL Executive settings (called SQL Server Agent in SQL Server 7), and many SQL Server 6.x configuration options.
The SQL Server Upgrade Wizard does not remove SQL Server 6.x from the computer. After upgrading, you will have two installations of SQL Server and two sets of data. SQL Server 6.x and SQL Server 7 installations are completely separate and independent. You should leave SQL Server 6.x on the computer until you verify the success of the upgrade. Optionally, you can remove SQL Server 6.x devices to save disk space if you use the tape upgrade option.
To switch from one version of SQL Server to the other, use the Microsoft SQL Server-Switch application on the Start menu, or run Vswitch.exe in the C:\Mssql7\Binn directory.
CAUTION
Do not switch versions while the Upgrade Wizard is running, as this can cause the upgrade to fail.
Before running the SQL Server Upgrade Wizard, you should consider these upgrade issues:
In order to upgrade a SQL Server 6.x database, the SQL Server computer must have the following software installed:
The SQL Server 6.5 and SQL Server 7 installations must have Named Pipes installed as a network library, even if you are using the tape upgrade option. Both SQL Server 6.x and SQL Server 7 must listen on the default pipe, \\.\pipe\sql\query.
You can upgrade only SQL Server 6.x databases to SQL Server 7. You cannot upgrade SQL Server 4.2 software or databases directly to SQL Server 7. Instead, you must upgrade the SQL Server 4.2 software and databases to SQL Server 6.5 and then upgrade to SQL Server 7.
In addition to the hard disk space used by SQL Server 7, you should have free disk space amounting to approximately 1.5 times the space used by the existing SQL Server 6.x databases.
You can use the SQL Server Upgrade Wizard to estimate the disk space needed to upgrade the SQL Server 6.x server to SQL Server 7. The wizard can estimate the following space requirements:
NOTE
The space requirement figures that the Upgrade Wizard provides are estimates, not exact sizes.
When upgrading enterprise servers involved in replication, you must upgrade the Distributor before you upgrade any other servers. You can phase in the conversion of the servers in your replication topology by upgrading the Distributor first and then upgrading other servers as time and resources permit.
Note
You cannot use many of the new replication features until you have upgraded all of the servers involved in your replication topology.
After you install SQL Server 7, and before you use the SQL Server Upgrade Wizard, you must perform the following tasks:
If you copied your SQL Server 6.x databases to a new computer to perform the upgrade, you may need to update the new SQL Server 6.x master database as follows:
SQL Server 7 has many features designed to make it as easy as possible to upgrade from earlier versions. The SQL Server Upgrade Wizard allows you to upgrade from SQL Server 6.x with minimum work. The process uses the new SQL Server 7 installation and the old SQL Server 6.x installation to copy across all of the old databases and database objects that you select. The process includes the ability to switch back to the old version on the same machine. The upgrade should proceed cleanly if you prepare carefully by checking all of the requirements before you start.