Feb 27 2022 11:08 PM
Hello Experts,
I am looking for the date, when is the last update (delete, truncate and reinsert) was made on the table
I came across SYS.DM_DB_INDEX_USAGE_STATS table with LAST_USER_UPDATE column, but sometime it returns NULL, Shall I believe on it gives me what I am looking for
Regards,
Amit
Feb 27 2022 11:42 PM
@AmitGhotikar , Stats are not persisted, they returns only values for the runtime. Of SQL Server restart all stats get cleared, so the are not very reliable.
What are you looking for/trying to achieve here?
> truncate
TRUNCATE is more a DDL (drop+recreate table) then a DML command.
Mar 21 2022 06:31 PM
there is a good tools you can find out,easy to know createtime/updatetime
and it can support sqlserver
Mar 21 2022 11:41 PM
@lijetcart , please no advertisement for 3rd-party products.
Sep 07 2022 06:13 AM
Sep 11 2022 11:00 PM