Article ID: 814574 - View products that this article applies to.
When you run a DBCC SHRINKFILE command in SQL Query Analyzer to shrink the specified transaction log file of a database, the transaction log file does not shrink, and you may receive the following error message:
Cannot shrink log file <transaction log file ID> (<transaction log file name>) because total number of virtual log files cannot be fewer than 2.
When a transaction log file has two virtual log files, you cannot shrink the transaction log file by using the DBCC SHRINKFILE command.
For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/272318/ )Shrinking the transaction log in SQL Server 2000 with DBCC SHRINKFILE
(http://support.microsoft.com/kb/324432/ )DBCC SHRINKFILE and SHRINKDATABASE commands may not work because of sparsely populated text, ntext, or image columns
(http://support.microsoft.com/kb/80629/ )Transaction log partially truncated
(http://support.microsoft.com/kb/317375/ )Transaction log grows unexpectedly or becomes full on SQL Server
For more information, visit the following Microsoft Web sites:
Shrinking the Transaction Log
Attaching and Detaching a Database
Article ID: 814574 - Last Review: May 31, 2007 - Revision: 5.6