cancel
Showing results for 
Search instead for 
Did you mean: 

How check when was a table last accessed?

0 Kudos


We can get information about DML changes on a table with sp_iqunusedtable. However, our requirement needs when was a Select query was executed on a particular table, it is possible??


Best regards



Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Jairo,

You may try query on SYSIQTAB for last UPDATE on table without audit.....

select convert(varchar(50),table_name),convert(varchar(27),update_time)

from systable t, SYSIQTAB i

where t.table_id = i.table_id

order by update_time;

Answers (1)

Answers (1)

markmumy
Advisor
Advisor
0 Kudos

You would need to enable auditing to track individual usage.  If all you need is usage data, you could look at the workload monitor where we track IF a table/column/index was used or not.  It does not track the WHO or the WHEN, that would come from auditing.

Mark

0 Kudos

Thank you Mark

Is there any IQ auditing procedure? or this could be executed with a third part tool?

Jairo