You can IMHO only get the last access date from a table since a restart of the SQL Server.That means if your SQL Server was restarted yesterday the the needed information isn't available.Maybe someone will correct me if i am wrong.Try this:-- show us the "restartdate" of this serverSELECT datediff(dd,create_date,getdate()) as [Days since SQL-Restart], create_date as amFROM sys.databases WHERE name = 'tempdb'-- ############################## USE <your_db_name_here GO sp_updatestats -- ##############################select table_catalog,table_name,last_user_seek,last_user_scan,last_user_updatefrom sys.dm_db_index_usage_stats i join INFORMATION_SCHEMA.TABLES t on t.TABLE_NAME = object_name(i.[object_id]) and object_name(i.[object_id]) not like 'sys%' and object_name(i.[object_id]) not like 'ms%'
No, you're never too old to Yak'n'Roll if you're too young to die.