Monday, May 4, 2020

SQL Server when was the database last used

select object_name(object_id),
last_user_update, *
from sys.dm_db_index_usage_stats
where database_id=db_id('ESQR_rev3')

No comments:

Post a Comment