The information in this article applies to:
SUMMARYThis article describes some backup and upgrade strategies that you can perform before upgrading SQL Server. In addition, there are helpful tips included for performing a successful SQL Server upgrade operation. You should review the Microsoft SQL Server documentation on upgrading SQL Server before performing any SQL Server upgrade. MORE INFORMATIONBACKUPDuring any upgrade application process, it is recommended that you have a valid backup. Because Windows NT Server provides a file backup facility and SQL Server provides dump and load capabilities, it is best to perform two types of backup.WINDOWS NT SERVER BACKUPWhen using the Windows NT Server backup utility, stop SQL Server and back up all the data and log device files, including Master.dat (which, by default, are those files that end with a .dat extension). If you are unsure about the file name, go to a query window, set your database to master, and run the following command:
Note the values in the phyname column. Copy all the data and log device files to tape or to a temporary directory other than SQL, SQL60, or any of their subdirectories; this prevents accidental deletion of the SQL directory. It is a good idea to have a recent backup of the registry. To learn how to back up the local registry to tape, see the "Backing Up Disk Files to Tape" section of the Windows NT Server documentation. After the upgrade successfully completes, you can delete the temporary directory. If time or space is limited, you can make a copy of the Master.dat file and do a full dump all of the databases. See the next section of this article, SQL SERVER DUMP, for details on how to dump all of the databases. SQL SERVER DUMPIt is very useful to have the results of SELECT statements against the sysdatabases, sysdevices, and sysusages table in the master database. To do this, perform the following steps:
CONFIGURATIONSet the default database of the system administrator (SA) to master by typing the following command at a query window:sp_defaultdb sa, master For more information, see the following article in the Microsoft Knowledge Base: Q135349 : FIX: SQL 6.0 Upgrade Fails if SA Default DB is Not Master Make sure all the databases are NOT set to read-only by reviewing the sp_helpdb output from the above script and reviewing the status column. Check the SQL Server documentation to determine how much physical disk space is required for the upgrade. The following are some other relevant articles that concern disk space that you should read before upgrading SQL Server: Q149650 : BUG: Upgrade Fails if Not Enough Space on Master for Tempdb Run the Chkupg.exe utility, which checks that the database status is acceptable, that all necessary comments exist in the syscomments system table, and that there are no keyword conflicts. You should resolve any keyword conflicts before upgrading SQL Server. Upgrading a database requires all objects to be scanned. In doing so, the upgrade may exceed some of your current runtime configuration values. To avoid this, you may want to temporarily double the size of the 'open objects' and 'locks' options before the upgrade. If you chose to do this, make sure you have enough memory dedicated to SQL Server to accommodate the changed values. Also, check how much memory is given to SQL Server. In SQL Server version 4.21a, the minimum value is 3,072 bytes (6 megabytes), while in SQL Server versions 6.0 and 6.5, the minimum value is 4,096 (8 megabytes). If you have additional physical RAM, increase the memory given to SQL Server to the level recommended in the SQL Server documentation. For more information, see the following article in the Microsoft Knowledge Base: Q110983 : INF: Recommended SQL Server for NT Memory Configurations In addition, make sure the open databases configuration option is equal to or greater than the total number of databases on your system. You can use sp_configure [<config_name> [, <config_value>]] from a query window to change any of these configuration options. Dynamic options take effect immediately after the RECONFIGURE statement has been run. For all non-dynamic options, you must stop and restart SQL Server for the changes to take effect. For details, see the documentation on the RECONFIGURE statement. Next, 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 the setup book under "About Character Sets" and "Sort Order Ids." For SQL Server 4.21a, these values can be found in the configuration guide. Shut down SQL Server and close any open SQL Server windows before upgrading. In addition, make sure you are logged on to Windows NT Server as an administrator or someone with administrative privileges. Logging on with administrative privileges may still result in upgrade problems if the 'Full Control' permissions have been revoked for administrator at either the file level for NTFS partitions or at the registry level. Check that administrator and system accounts have full control in the registry hives listed in the TROUBLESHOOTING section of this article. Finally, check the network capabilities. If the server that is being upgraded does not have network capabilities, stop the Workstation service to force the upgrade to use the local pipes. To do this, perform the following steps:
Go to the SQL Server Setup.exe that you want to upgrade to and upgrade SQL Server. During the upgrade, it is best to specify the same drive and directory to copy the SQL Server files to. Also, make sure you know the correct password for the SA before upgrading. NOTE: Upgrades from beta or evaluation versions of SQL Server are not supported. WINDOWS NT SERVER VERSIONS FOR SQL SERVERIf you are planning on upgrading the computer to Windows NT Server 4.0, the sequence of upgrading SQL Server and Windows NT Server matters. For additional information on the Windows NT operating system versions that support Microsoft SQL Server versions 4.2x, 6.0, and 6.5, please see the following article in the Microsoft Knowledge Base:Q122352 : INF: Supported Windows NT Versions for SQL Server If you have a 4.2x or 6.0 version of SQL Server running on Windows NT Server 3.5 or 3.51, and you want to upgrade to SQL Server 6.5 and Windows NT Server 4.0, you need to upgrade SQL Server first. SQL Server 6.5 is supported on both Windows NT Server 3.51 and Windows NT Server 4.0. However, SQL Server 4.21a and 6.0 are only supported on Windows NT Server versions 3.5 or 3.51. TROUBLESHOOTINGIf the upgrade encounters a problem while copying files, correct whatever error you received and try the upgrade again. If you encounter a problem after copying all the files, remove all SQL directories and files in Windows NT Explorer or File Manager and remove any entries in the registry for SQL Server. Be very careful when editing anything in the registry. If you delete a key that does not belong to SQL Server, you can restore the registry backup that you made earlier, in the WINDOWS NT BACKUP section of this article.WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall SQL Server. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk. For SQL Server 4.21a, select and delete SQLServer and SQLMonitor found in the following registry keys:
For SQL Server 6.0, select and delete MSSQLServer and SQLExecutive found in the following registry keys:
After you have removed the entries, you have two options to try the upgrade again:
SUMMARYThe following list summarizes the steps recommended for a SQL Server upgrade:
Keywords : kbenv kbsetup SSrvGen SSrvInst |
Last Reviewed: March 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |