• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 866
  • Last Modified:

see last updated table

is there any system table/view that will help to see last DML impacted table?

I am looking for an option, apart from looking at code, when an user action takes place, what tables were hit (assuming it is a one user application)

thanks
0
anushahanna
Asked:
anushahanna
  • 3
  • 2
  • 2
  • +1
4 Solutions
 
Rey Obrero (Capricorn1)Commented:
you can look at the msysobjects table

select [name], dateupdate
from msysobjects
where type=1

other types for tables are 4 for linked access table and 6 for odbc linked tables
0
 
Rey Obrero (Capricorn1)Commented:
select top 1 [name],dateupdate
from msysobjects
where type=1
order by dateupdate desc
0
 
peter57rCommented:
There is nothing in Access which tells you the datetime of the last data update (or of Any data update).  You would have to build it into the table design if you want that information.
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
To expand on what Peter said, you would enable some sort of "audit trail". Allen Browne has a good article on this:

http://allenbrowne.com/AppAuditCode.html
0
 
anushahannaAuthor Commented:
OK-
what does capricorn1's query really show, then?
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
It would tell you the last time the schema of the table was updated. For example, if you add a new Field, rename a field, etc - that value would be updated. Access doesn't natively store transactional data logs, as do true server-based databases like SQL Server, Oracle, etc.
0
 
anushahannaAuthor Commented:
thank you all,
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Was there some reason you accepted the comment from Capricorn1, regarding using the MSysObjects table? Was that solution agreeable to you? It would seem that, given your question, that Capricorn's comment didn't really answer your question. You asked specifically about DML (Data MANIPULATION Language) changes, and the comment from Cap concerned DDL (Data DEFINITION Language) changes. The two have nothing to do with each other.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now