Microsoft KB Archive/295120

= FIX: OK Button for Changing the Recovery Model or the Compatibility Level in SQL Enterprise Manager is Disabled =

Article ID: 295120

Article Last Modified on 11/5/2003

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition

-



This article was previously published under Q295120



BUG #: 234619 (SHILOH_bugs)



SYMPTOMS
In the SQL Server 2000 Enterprise Manager, the OK button in the Database Properties Options dialog box is disabled. Although you expect the button to become enabled after you make a change to any of the database options listed, this does not happen if the database was created with the MAXSIZE parameter.

The OK button becomes enabled for changes to most options on the screen, except for the following:


 * The Recovery Model option.
 * The Database Compatibility Level option.

This is true regardless of whether the database was created by using the CREATE DATABASE wizard in Enterprise Manager, or the CREATE DATABASE Transact-SQL statement. Until the OK button is enabled and clicked in the Options dialog box, changes for the options in the preceding list are not applied to the database.



RESOLUTION
To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack



WORKAROUND
To work around this behavior, use Transact-SQL statements to change the recovery model or the compatibility level for a database.

To change the recovery model to SIMPLE for a database, use the ALTER DATABASE command as follows: ALTER DATABASE dbname SET RECOVERY SIMPLE To set the database compatibility level to 70 for a database, use the sp_dbcmptlevel stored procedure as follows: sp_dbcmptlevel 'pubs',70 For more information about these commands, refer to SQL Server 2000 Books Online.



STATUS
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.



MORE INFORMATION
To reproduce the problem, use the following steps:


 * 1) Create a database by using the Enterprise Manager or the Transact-SQL CREATE DATABASE command, and then specify a maximum size.
 * 2) Right-click the database name in Enterprise Manager, select Properties, and then click Options.
 * 3) Note that the OK button is disabled. Either change the recovery model or the compatibility level option, and the OK button is still disabled.
 * 4) Change any of the other options and you will see that the OK button becomes enabled.

Keywords: kbbug kbfix kbsqlserv2000sp1fix KB295120

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.