Solved

see last updated table

Posted on 2011-02-20
8
859 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

911 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

20 Experts available now in Live!

Get 1:1 Help Now