Solved

DB updates?

Posted on 1998-01-25
7
166 Views
Last Modified: 2010-04-04
Hi!

How can I detect if other DB programs makes change to my DB?
I am using Delphi 3.0 Prof w/BDE
0
Comment
Question by:chrb
  • 3
  • 3
7 Comments
 
LVL 8

Expert Comment

by:MikeP090797
ID: 1357535
If you mean while your app is off, you can save your db's size and check it later. The chances are, if the db changes, the size will change too
0
 

Author Comment

by:chrb
ID: 1357536
I meen while the program is running. It is a Paradox table.
0
 
LVL 1

Expert Comment

by:millerw
ID: 1357537
While a table is running, use a callback function with the BDE.  It is called cbTABLECHANGED.  Also check out the DBICheckRefesh and DBIForceRefresh BDE functions.

BTW--check those all out in the BDE API Help file.

Need more help, just write,
Scott
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
LVL 1

Expert Comment

by:millerw
ID: 1357538
http://www.borland.com/devsupport/bde/delphifiles.html

Try the component on this page--here is the description:

Delphi table change notification component with example: This sample component does all the BDE API work for you to give notification when a Paradox table has changed.  Fully configurable; check interval time and custom event allows you to do anything you want when the table has changed. Simply install the new TTable component (TRegisterTable in RegisterTable.pas) and compile the included project. This component will work with all table types, but will only use the callback with Paradox table types.

If you like this, just reject the current answer and I'll post this as the answer.

Have fun,
Scott
0
 

Author Comment

by:chrb
ID: 1357539
Thanks Millerw, please post as answer :)

Chr
0
 
LVL 1

Accepted Solution

by:
millerw earned 70 total points
ID: 1357540
http://www.borland.com/devsupport/bde/delphifiles.html

Try the component on this page--here is the description:

Delphi table change notification component with example: This sample component does all the BDE API work for you to give notification when a Paradox table has changed. Fully configurable; check interval time and custom event allows you to do anything you want when the table has changed. Simply install the new TTable component (TRegisterTable in RegisterTable.pas) and compile the included project. This component will work with all table types, but will only use the callback with Paradox table types.

Have fun,
Scott
0
 

Author Comment

by:chrb
ID: 1357541
Thanks!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying 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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

831 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