Solved

Monitoring a database for changes with ADO

Posted on 2002-05-13
2
281 Views
Last Modified: 2006-11-17
I am trying to monitor a database for additions, changes or deletions.  The changes come from a third party app that I do not have source for.  I know the app uses ADO because it installs the latest version of ADO when it is installed.

I need real-time performance from the database so I've decided to cache all the data in memory while my application is running.

However, to keep the cache up-to-date with the database, I need some way of being notified when a change takes place so I can update the cache.

Will ADO provide the kind of events I'm looking for?
0
Comment
Question by:jlalande
2 Comments
 
LVL 22

Accepted Solution

by:
DrSQL earned 200 total points
ID: 7009571
jlalande,
   If I understand your question correctly, I think you're looking the wrong place.  It is the database that knows when it has been changed, not ADO.  What DB engine are you using?  If it has the ability to create triggers, then it could populate a database structure or perhaps run a java applet that would tell your app whether there were changes.  ADO is just the objectification layer/interface.

   It might mean regularly polling a simple DB structure, but would still allow you to update your cache in a more timely fashion (and based upon actual activity rather than a time interval).

Good luck!
0
 

Author Comment

by:jlalande
ID: 7009606
DrSQL

Thanks for your comments.

The third party app uses either SQL Server or dBase depending on what the user selects at install time.  I think the default is dBase.

I considered the trigger approach but wasn't sure if my program could add triggers to another application's database.  I should do more research and experimentation.

I was intrigued by the ADO approach since two more third party apps we have to work with actually generate COM events when they update their databases...though there databases are in a proprietary format.

But if ADO won't do the trick, I'll follow your suggestion.

Thanks
John
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pivot not using aggregate yield error 3 62
use lov values 2 64
Merging spreadsheets 8 60
fault SQL backup files that wont restore - how common 3 29
I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

820 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