Category: MSSQL – Audit
Find Currently Running Query – T-SQL
Reference: http://blog.sqlauthority.com/2009/01/07/sql-server-find-currently-running-query-t-sql/
Find Most Expensive Queries Using DMV
Reference: http://blog.sqlauthority.com/2010/05/14/sql-server-find-most-expensive-queries-using-dmv/
Get Latest SQL Query for Sessions
Reference: http://blog.sqlauthority.com/2010/05/05/sql-server-get-latest-sql-query-for-sessions-dmv/
Last Read / Last Write
Sometimes you need to know the last time a table or database was read from or written to, this code will help determine that for you. Originally Found At: http://blog.sqlauthority.com/2009/05/09/sql-server-find-last-date-time-updated-for-any-table/
Column Name Search
An extension of Table/View Column Information In the event that you need to find a table that has a specific column name.
MSSQL – Table/View Column Information
Similar to MySQL – Table/View Column Information, this post will help with MSSQL tables and columns. Cleaner Result: All Tables Result: