Prepare SQL Server 6.0

To prepare your SQL Server 6.0 to be upgraded to version 6.5

From a query window, set the default database of the system administrator (SA) to master by executing:

sp_defaultdb sa, master

Make sure all the databases are not set to read-only by reviewing the sp_helpdb output from the Sqldump.sql script (see the status column).

Check the SQL Server documentation to determine how much physical disk space is required for the upgrade.

Run Chkupg65.exe to check that database status is acceptable, that all necessary comments exist in the syscomments system table, and that there are no keyword conflicts.

Note Chkupg65.exe is included with SQL Server 6.5.

Resolve any keyword conflicts before upgrading SQL Server.

Check how much memory is given to SQL Server.

In SQL Server version 4.21a, the minimum value is 3,072 (6 MB), while in SQL Server versions 6.0 and 6.5, the minimum value is 4,096 (8 MB). If you have additional physical RAM, increase the memory given to SQL Server to the level recommended in the SQL Server documentation.

Note Upgrading a database requires all objects to be scanned. In doing so, the upgrade may exceed some of your current run-time configuration values. To avoid this, you may want to temporarily double the size of open objects and locks before the upgrade. Make sure you have enough memory dedicated to SQL Server to accommodate the changed values.

Make sure the open databases configuration option is equal to or greater than the total number of databases on your system. You can change this configuration from a query window by using:

sp_configure [config_name [, config_value]]

Dynamic options take effect immediately after the RECONFIGURE statement has been executed. For all non-dynamic options, SQL Server must be stopped and restarted before the options can take effect. For details, see the RECONFIGURE statement.

Execute sp_helpsort to determine what sort order and character sets you have installed.

For SQL Server 6.0 and SQL Server 6.5, these values can be found in Appendix A of Microsoft SQL Server Setup (see the "About Character Sets" and "Sort Order Ids" sections). For SQL Server 4.21a, these values can be found in the configuration guide.

Shut down SQL Server and close any SQL Server windows before upgrading.