September 25, 2005 at 8:43 am
Does anyone know how I would go about getting the last date a table has been used in a database.
Example, if used today show me table name and todays date.
Thanks in advance.
--Ron
September 25, 2005 at 12:20 pm
What do you mean by used? There is no information created automatically about when the data in a table was read and/or modified.
September 25, 2005 at 1:19 pm
By used I mean the last time data was read or written.
If there is nothing other than in a log then I guess I can not determine that type of information, unless I put triggers on all tables I guess.
THanks anyways.
--Ron
September 26, 2005 at 2:03 am
But you cannot trigger for reads. You will need to trace with Profiler or similar for this information.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply