How to find the last accessed details for a table

Query the system.access.audit table.

Written by kingshuk.das

Last published at: July 3rd, 2025

Introduction

You want to find a table’s last accessed details for audit purposes. 

 

Instructions

Run the following query. You can retrieve details about rows, but not columns. 

SELECT
  max(event_time) as event_time,
  request_params.table_full_name

FROM system.access.audit
WHERE 
  request_params.operation = 'READ'
GROUP BY request_params.table_full_name
ORDER BY event_time DESC