Article ID: 959012 - Last Review: January 6, 2009 - Revision: 2.0 FIX: When you shrink a database that has the SNAPSHOT transaction isolation level enabled in SQL Server 2005, the shrink operation is not completed successfullyOn This PageSYMPTOMSIn Microsoft SQL Server 2005, you enable the SNAPSHOT transaction isolation level or the read committed SNAPSHOT transaction isolation level for a database. When you execute DML statements against a table that does not have a clustered index, the database continues growing. The database becomes very large. Also, when you shrink the database, the shrink operation does not complete successfully. If you run the following statements, the values of the ghost_record_count column and of the forwarded_record_count column are very large: CAUSEWhen you shrink the database or the Ghost Cleanup process runs, forwarded versioned records in a heap are not handled correctly. Therefore, the Ghost Cleanup process skips these records. Therefore, you cannot shrink the database. Because the Ghost Cleanup process does not work, the database grows continuously. Therefore, you have less disk space. RESOLUTIONService pack informationTo resolve this problem, obtain the latest service pack for SQL Server 2005. For more information, click the following article number to view the article in the Microsoft Knowledge Base:913089
(http://support.microsoft.com/kb/913089/
)
How to obtain the latest service pack for SQL Server 2005
WORKAROUNDTo work around this issue, you can create a clustered index on the table. Then, you can drop the clustered index. STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was first corrected in SQL Server 2005 Service Pack 3. MORE INFORMATIONFor more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base: 824684
(http://support.microsoft.com/kb/824684/
)
Description of the standard terminology that is used to describe Microsoft software updates APPLIES TO
| Article Translations
|
Back to the top
