DBCC SQLPERF(IOSTATS) 

Home
Up
What's New
DTS
SQL-DMO
SQL-NS
XP's
SQL Agent
Misc. Tools
Events
Articles
FAQ
Links
About...

DBCC SQLPERF(IOSTATS) is not returning any valuable information, the counters will always be zero!

The result set:

Statistic                         Value
-------------------------------- ------------------------
Reads Outstanding                 0.0
Writes Outstanding                0.0

Description of the statistic rows:

StatisticDescription
Reads OutstandingThis counter is always zero
Writes OutstandingThis counter is always zero

The table structure returned, has the following shape:

create table #iostats
(
    [Statistic]    nvarchar(32) not null,
    [Value]        float not null
)

To populate the table use:

insert into #iostats exec('dbcc sqlperf(iostats) with tableresults, no_infomsgs')
select * from #iostats

NOTE: DBCC SQLPERF(IOSTATS, CLEAR) is a NOP.

Questions or problems regarding this web site should be directed to Web Master.
Copyright © 1991-2005 SQLDev.Net. All rights reserved.
Last modified: 04/06/05.