Hi everyone, Does anyone know how I can find out when the database was last updated or touched or activity performed. Anytype of activity. I just wanted to see like a last updated date. Does anyone know how I can find that is there a script or something? This is in sql server 2005. Thanks,
If you think the DB isn't being used, one approach we took was to set AUTOCLOSE on; definitely not a good idea for databases you know are actively being used! If anything is hitting the database, when it is opened it is logged to the SQL log and you start run traces then to see what is hitting it and from where. Just one approach!
Check the following Aaron SQL MVP blog for answer and explanation..... http://sqlblog.com/blogs/aaron_bert...when-was-my-database-table-last-accessed.aspx