Article ID: 290916 - Last Review: November 5, 2003 - Revision: 3.2

FIX: fn_virtualfilestats Skips the Last File

This article was previously published under Q290916
BUG #: 235019 (SHILOH_bugs)
Expand all | Collapse all

SYMPTOMS

If a database consists of four or more files (any combination of data and log), the output of the following query may skip one of the files:
select * from ::fn_virtualfilestats(<db_id>, -1)
				

RESOLUTION

To resolve this problem, obtain the latest service pack for SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
290211  (http://support.microsoft.com/kb/290211/EN-US/ ) INF: How to Obtain the Latest SQL Server 2000 Service Pack

STATUS

Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.

MORE INFORMATION

To reproduce the problem, execute the following code:
create database MultiFileDB on
(name='MultiFileDB1', filename='c:\MultiFileDB.mdf', size=1),
(name='MultiFileDB2', filename='c:\MultiFileDB2.ndf', size=1),
(name='MultiFileDB3', filename='c:\MultiFileDB3.ndf', size=1) log on
(name='MultiFileDBlog', filename='c:\MultiFileDB.ldf', size=1)
go
declare @var int
select @var = db_id('MultiFileDB')
select * from ::fn_virtualfilestats(@var, -1)
go
drop database MultiFileDB
go
				

APPLIES TO
  • Microsoft SQL Server 2000 Standard Edition
Keywords: 
kbbug kbfix kbsqlserv2000sp1fix KB290916
 

Article Translations

 

Related Support Centers