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?
对于每个表,有没有办法获得针对它执行的最后一个插入命令的日期/时间?
1 个解决方案
#1
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.
这取决于您正在使用的SQL Server的版本。 SQL Server 2005或更新,你试试看这里。如果它是一个较旧的服务器引擎,你可能会运气不好,除非有人主动使用存储过程和记录更新。
#1
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.
这取决于您正在使用的SQL Server的版本。 SQL Server 2005或更新,你试试看这里。如果它是一个较旧的服务器引擎,你可能会运气不好,除非有人主动使用存储过程和记录更新。