0
從鏈接: http://www.databasejournal.com/features/mssql/article.php/2244381/Examining-SQL-Servers-IO-Statistics.htm如何獲得SQL Server的總I/O統計與日期範圍
我得到的查詢
-- Take a look at raw I/O Statistics
SELECT @@TOTAL_READ [Total Reads]
, @@TOTAL_WRITE as [Total Writes]
, CAST(@@IO_BUSY as FLOAT) * @@TIMETICKS/1000000.0 as [IO Sec]
GO
(Results)
Total Reads Total Writes IO Sec
----------- ------------ -----------
85336 322109 25.375
我如何獲得這一點,但這個時候我可以有時間過濾器? 即
where
xDate between Date1 and Date2
?
@Note:
這是問題How to find out SQL Server table's read/write statistics with Date Filter?不同,因爲這是總的,另一種是按表
可能的重複[如何找出SQL Server表的讀/寫統計與日期過濾?](http://stackoverflow.com/questions/36912343/how-to-find-out-sql-server-tables-讀寫統計與日期過濾器) –
@RichBenner這一個是總數,另一個是每個表 –
所有的統計數據是最新的。不,沒有辦法爲這種統計提供日期範圍過濾器。 –