I have a database with many tables used and many tables that are no longer in use. Although I could sort each table manually to make sure they are still in use, this would be a cumbersome task. Is there any software / hidden feature that can be used in the SQL Server / Oracle database that will return information such as "Tables x, y, z were not used last month" "Tables a, b , c have been used 17 times today? " Or perhaps a way to sort tables using "Last Modified / Selected From"?
Or is there a better way to do this? Thanks
edit: I found the "modify_date" column while executing "SELECT * FROM sys.tables ORDER BY modify_date desc", but this seems to be tracking changes to the table structure, not its contents.
source
share