Skip to main content

How can we check who has last modified the table ? Means who has alter a particular table?

  • November 22, 2013
  • 2 replies
  • 12 views

Soumya_Behera
Forum|alt.badge.img+1
How can we check who has last modified the table ? Means who has alter a particular table?

2 replies

Daniel_Leybovic
Forum|alt.badge.img+1
  • Participating Frequently
  • November 22, 2013
QUERY_REQUESTS

Returns information about user-issued query requests.

Something like this:
SELECT USER_NAME,
       TRANSACTION_ID,
       STATEMENT_ID,
       MAX(START_TIMESTAMP)
  FROM QUERY_REQUESTS
 WHERE REQUEST ILIKE '%ALTER%TABLE%table_name%';

Soumya_Behera
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • November 25, 2013
Thank you so much Daniel . Your reply really helped me.