Solved

see last updated table

Posted on 2011-02-20
8
858 Views
Last Modified: 2012-05-11
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
Comment
Question by:anushahanna
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 125 total points
ID: 34940352
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
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 34940367
select top 1 [name],dateupdate
from msysobjects
where type=1
order by dateupdate desc
0
 
LVL 77

Assisted Solution

by:peter57r
peter57r earned 125 total points
ID: 34941201
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
 
LVL 84

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
ID: 34942353
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 6

Author Comment

by:anushahanna
ID: 34942470
OK-
what does capricorn1's query really show, then?
0
 
LVL 84

Assisted Solution

by:Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 250 total points
ID: 34942503
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
 
LVL 6

Author Comment

by:anushahanna
ID: 34949998
thank you all,
0
 
LVL 84
ID: 34950926
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

It took me quite some time to sort out all the different properties of combo and list boxes available from Visual Basic at run-time. Not that the documentation is lacking: the help pages are quite thorough and well written. The problem was rather wh…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now