FIX: SQLMaint.exe Sets Database Status Incorrectly (276234)
The information in this article applies to:
- Microsoft SQL Server 7.0 Service Pack 2
This article was previously published under Q276234
BUG #: 58472 (SQLBUG_70)
SYMPTOMS
When attempting to repair minor errors on databases, the Database Maintenance Plan Wizard puts the databases in single-user mode and may not reset their status to regular (multi-user) mode.
CAUSE
In SQL Server 7.0 Service Pack 2, the Database Maintenance Plan Wizard places a database in single user mode when the option to attempt to repair any minor problems is selected in the maintenance plan. If the maintenance job fails for any reason, databases may be left in single-user mode.
WORKAROUND
To work around this problem, do either of the following:
- Add a step in the job to force the database out of single-user mode after the job completes. Database maintenance plans automatically generate jobs, and a particular job will be named with the name of the maintenance plan followed by 'DB Maintenance Plan check Integrity'. After the creation of the job, you could edit it to insert a step to set the single-user mode option to false after the existing steps.
-or- - Manually remove the Single-User option of the database, by using either Enterprise Manager or the sp_dboption stored procedure.
STATUS
Microsoft has confirmed this to be a problem in SQL Server
7.0 Service Pack 2. This problem has been corrected in U.S. Service Pack 3
for Microsoft SQL Server 7.0 Service Pack 2. For information about
how to download and install the latest SQL Server Service Pack, see
the following Microsoft Web site:
For more information, contact your primary support provider.
Modification Type: | Major | Last Reviewed: | 7/19/2006 |
---|
Keywords: | kbbug kbfix KB276234 |
---|
|