SQL Server database last updated date time

后端 未结 3 1791
北荒
北荒 2021-02-08 01:14

Is there any sql script to find out when the database in SQL server is last updated?

I want to know the last updated date time for the changes done on meta data of the

3条回答
  •  南旧
    南旧 (楼主)
    2021-02-08 01:34

    This will return last modified date time + name of updated item + description what was updated (table, stored procedure, etc)

    SELECT TOP 1 name, modify_date, type_desc
    FROM  sys.objects
    ORDER BY modify_date DESC
    

提交回复
热议问题