.......................................................................
.........................................................................
Note:Use of these queries are up to the user responsibilities,so i do not recommend to use these views without testing on a test server, as the impact of these views on system resources can be intense at times, and i do not own these views , the total credit goes to the individual contributors and companies , the purpose of these posting is to systematically bring different views at one place for troubleshooting sql server |
| DB_NAME(database_id) AS [ Database Name ], |
| CAST ( SUM (num_of_bytes_read + num_of_bytes_written)/1048576 AS DECIMAL (12, 2)) AS io_in_mb |
| FROM |
| sys.dm_io_virtual_file_stats( NULL , NULL ) AS [DM_IO_STATS] |
| GROUP BY database_id; |
No comments:
Post a Comment
Note: only a member of this blog may post a comment.