Skip to content

Data Dreaminer Blog

Blog site for Power BI, SQL and Excel

Category: Sql Queries

  • Home
  • Sql Queries
  • Sql Queries

Table Names in the database and the last time they were Updated

Ever wondered to see all the tables names and the last time they were updated? This is a query which will give you all the desired result. Select Distinct Object_name(object_id) as DatabaseName, Object_id, Database_id, Last_user_update From Sys.dm_db_index_usage_stats Where database_id = db_id() and last_user_update is not null

November 6, 2020November 6, 2020

Recent Posts

  • Table Names in the database and the last time they were Updated

Recent Comments

    Copyright © 2025 Data Dreaminer Blog | Theme: Smooth Blog By Moral Themes.