Solved

Delphi Capture table changes

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

Accepted Solution

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

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 36

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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