SQL Server - What is the date/time of the last inserted row of a table?

12,046

It depends on the version of SQL server you're using. SQL server 2005 or newer you try looking here. If its an older server engine you may be out of luck unless someone was proactive enough to use stored procedures and logged updates.

Share:
12,046

Related videos on Youtube

Nick Patterson
Author by

Nick Patterson

Updated on June 04, 2022

Comments

  • Nick Patterson
    Nick Patterson almost 2 years

    My fellow programmers did not think to add timestamps to every tables of our outstanding database.

    As a result, some tables seem to be outdated, but it is very difficult to say which ones.

    Is there any way to get, for each table, the date/time of the last insert command performed against it?

  • Nick Patterson
    Nick Patterson about 15 years
    I'm in luck, i'm using SQL Server 2005 ! :o) Thanks for the link.