Tag Archives: how many reads and writes

How to find total number of read/write on sql server databases

The following SQL will tell you ¬†how many reads and writes the databases on your sql server instances has serviced : SELECT d.Name AS DatabaseName, COUNT(c.connection_id) AS NumberOfConnections, ISNULL(SUM(c.num_reads), 0) AS NumberOfReads, ISNULL(SUM(c.num_writes), 0) AS NumberOfWrites FROM sys.databases d LEFT … Continue reading

Posted in database, sql server | Tagged , , , | Leave a comment