Article ID: 279511 - View products that this article applies to.
This article was previously published under Q279511
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 57330 (SQLBUG_70)
Executing a DBCC SHRINKFILE (data_filename, EMPTYFILE) command on a multifile database with mostly heap or text pages may not empty pages from the first extent of the data file. Hence, the file cannot be dropped after the shrink operation is completed using ALTER DATABASE.
The allocation code sometimes reallocates pages out of the first extent of a file that DBCC SHRINKFILE (data_filename, EMPTYFILE) was trying to clear.
There are two ways to work around this problem:
Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
274799For more information, contact your primary support provider.
(https://support.microsoft.com/kb/274799/ )INF: How to Obtain Service Pack 3 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0