Solved

Delphi Capture table changes

Posted on 2012-03-27
5
315 Views
Last Modified: 2012-05-18
I have application written in Delphi 6. The application works with Local Access table. I need to know Immediately when this table has a new record (the record is being added from different application). Right now I am working with 3 seconds timer that count the records. Is there any other way to do it without this timer ?

Thanks & regards.
0
Comment
Question by:oferlll
  • 3
5 Comments
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 500 total points
ID: 37771123
no, you are using the best approach
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 37771139
for short, you are limited by the database you are using

>> with oracle, you can register to get events immediately upon change
DBMS_ALERT sample:
http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_alert.htm#CHDHACEG

access does not have this capability
0
 
LVL 37

Assisted Solution

by:Geert Gruwez
Geert Gruwez earned 500 total points
ID: 37771147
but,
i would add a DATE/TIME Modified column

counting records will not show you the latest record modified

SELECT MAX(DT_MODIFIED) FROM TABLE

gives you the latest change time > store this and run again to check any changes
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

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 191
Using idhttp to login to instagram 2 76
URL for downloading Google Chrome for Win XP 2 122
Delphi 2 49
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

14 Experts available now in Live!

Get 1:1 Help Now