New answers tagged dmv
SQL Server doesn't really track database access in the way you want, at least going backward (you can set up things like server-side trace, extended events, auditing, etc. going forward). There is one ballpark thing you can use: DMVs that track index usage and procedure/trigger/query stats. For example: ;WITH d AS ( SELECT d = database_id, name FROM ...
Top 50 recent answers are included