FIX: ALTER DATABASE SET READ_ONLY Statement May Lead to an Assertion If the Transaction Log is Full (318878)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
This article was previously published under Q318878 BUG #: 356781 (SHILOH_BUGS) SYMPTOMS If the following conditions are true, SQL Server may
encounter an assertion followed by an Access Violation (AV), which may then
cause the server to either shut down or become unresponsive: - An ALTER DATABASE Set Read_Only statement has been issued
on a database.
- The transaction log of the database on which the ALTER
DATABASE statement is being run is full.
CAUSE When an ALTER DATABASE SET READ_ONLY statement is executed
on a database, SQL Server must:
- Shut down the database cleanly by issuing a CHECKPOINT
statement.
- Update the status in the Master..Sysdatabases system table for that database.
- Bring the database back up with the new status.
However, if the transaction log is full, a CHECKPOINT record
cannot be written to the database and it raises an error. SQL Server ignores
this error and incorrectly continues to update the status in Master..Sysdatabases. As a result, when the database is brought back up again, the
status is set to read-only but SQL Server continues to try to perform a
recovery on a read-only database; therefore, an Assertion occurs.
RESOLUTION To resolve this problem, obtain the latest
service pack for Microsoft 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 NOTE: The following hotfix was created before the release of Microsoft
SQL Server 2000 Service Pack 3. The English version of this fix
should have the following file attributes or later:
Date Time Version Size File name
---------------------------------------------------------
02/27/2002 1:42 PM 8.00.591 7273 KB Sqlservr.exe
NOTE: Due to file dependencies, the most recent hotfix or feature that
contains the files may also contain additional files. STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
This problem was first corrected in Microsoft SQL Server
2000 Service Pack 3.
Modification Type: | Minor | Last Reviewed: | 9/27/2005 |
---|
Keywords: | kbHotfixServer kbQFE kbSQLServ2000sp3fix kbbug kbfix kbSQLServ2000preSP3fix KB318878 |
---|
|