Find the last time table was updated

后端 未结 6 921
渐次进展
渐次进展 2020-12-23 12:10

I want to retrieve the last time table was updated(insert,delete,update).

I tried this query.

SELECT last_user_update
FROM sys.dm_db_index_usage_stat         


        
6条回答
  •  [愿得一人]
    2020-12-23 12:43

    Why not just run this: No need for special permissions

    SELECT
        name, 
        object_id, 
        create_date, 
        modify_date
    FROM
        sys.tables 
    WHERE 
        name like '%yourTablePattern%'
    ORDER BY
        modify_date
    

提交回复
热议问题