FIX: fn_virtualfilestats Skips the Last File

Article translations Article translations
Article ID: 290916 - View products that this article applies to.
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 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
				

Properties

Article ID: 290916 - Last Review: November 5, 2003 - Revision: 3.2
APPLIES TO
  • Microsoft SQL Server 2000 Standard Edition
Keywords: 
kbbug kbfix kbsqlserv2000sp1fix KB290916

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com