?
Solved

DB updates?

Posted on 1998-01-25
7
Medium Priority
?
172 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 280 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses
Course of the Month11 days, 22 hours left to enroll

752 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