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 database rather than actual data inside the table. Particularly when:
Look in sys.objects should be enough, try this query
select * from sys.objects
order by modify_date desc
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With