fn_virtualfilestats returns I/O statistics for a database file : fn_virtualfilestats « System Functions « SQL Server / T-SQL Tutorial






5>
6> SELECT * FROM ::fn_virtualfilestats(5, 1)
7> GO
DbId   FileId TimeStamp   NumberReads          BytesRead            IoStallReadMS        NumberWrites         BytesWritten         IoStallWriteMS       IoStallMS            BytesOnDisk          FileHa
ndle


------ ------ ----------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- -------------------- ------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------

(0 rows affected)
1>
2>








25.15.fn_virtualfilestats
25.15.1.fn_virtualfilestats returns I/O statistics for a database file