Author

Rich

Just another IT guy.

SQL Server: Top 10 IO Queries

February 2, 2013

From Sunil's blog to identify the top 10 queries generating most IO.   SELECT TOP 10 (total_logical_reads/execution_count) AS avg_logical_reads, (total_logical_writes/execution_count) AS avg_logical_writes, (total_physical_reads/execution_count) AS avg_phys_reads, execution_count, statement_start_offset as…

SQL Server: Cumulative IO By Database since Last Restart

February 2, 2013

Here's a TSQL script to get cumulative IO by database since last restart. WITH Agg_IO_Stats AS ( SELECT DB_NAME(database_id) AS database_name, CAST(SUM(num_of_bytes_read + num_of_bytes_written) / 1048576 / 1024.…

SQL Database IO Consumption

January 30, 2013

Here's a query I found that helps show database IO consumption. SELECT DB_NAME(DB_ID('DATABASENAME')) AS [Database Name] , mf.physical_name , io_stall_read_ms , num_of_reads , CAST(io_stall_read_ms / (1.0 + num_of_reads)…

Linux Tape Drive Notes

January 29, 2013

TAPEDRIVE NOTES (LINUX 2.4) -Rich (01/08/2004) Rewind tape drive: # mt -f /dev/st0 rewind Backup directory /www and /home with tar command (z - compressed): # tar -czf…

Tool Tip: Adobe Reader and Acrobat Cleaner Tool

January 24, 2013

Problems installing Adobe Reader or Acrobat? Could be because an unsuccessful uninstall attempt, and interrupted installation/uninstallation, etc. Who knows! I came across a tool that worked in cleaning…

Google Flu Trends

January 18, 2013

Google has a Flu Trends project where you can see influenza trends across the world estimated by search queries. Here's an example from my state, Pennsylvania: Flu Information Get more…

Check MX Record in Windows from Command Line

January 18, 2013

I don't know how many times a day/week I do this to troubleshoot various issues with email systems. Good command in general to remember and use. It's really…