Solved

Delphi Capture table changes

Posted on 2012-03-27
5
318 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Print Graphic and Text to Epson TM-T88v 12 389
TServerSocket - file via sendbuf or Text via sendtext ? 1 65
Multiple image collision 13 80
Delphi inherited method 6 76
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 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