Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 6.0.061
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol 3.0.061
  HXTT DBF 6.0.064
  HXTT Excel 5.0.064
  HXTT Paradox 6.0.061
  HXTT Text(CSV) 6.0.062
  HXTT XML 2.0.061
Offshore Outsourcing
Free Resources
  Firewall Tunneling
  Search Indexing Robot
  Conditional Compilation
  Password Recovery for MS Access
  Password Recovery for Corel Paradox
  Checksum Tool for MD5
  Character Set Converter
  Pyramid - Poker of ZYH
   
   
   
Heng Xing Tian Tai Lab of Beijing City (abbr, HXTT)

HXTT ACCESS
Get notification when database changes?
Patrick K├Ânemann
2017-06-29 00:12:03.0
We use the AccessDriver to load data from a mdb-file. That file may be open by another application which may also change that file. Is it possible to get notified by HXTT AccessDriver if the other application did some modification (insert, update, delete)?

I saw that there is a method AccessDriver.setTransactionWatcher(r), but I could not find any documentation for it. Can that be used to get notified about modifications?
Re:Get notification when database changes?
HXTT Support
2017-06-29 06:15:21.0
>AccessDriver.setTransactionWatcher(r),
That feature is using in DbAdmin GUI for client/server mode, remote control/access admin to monitor/manage connection,table, and so on.

2017-06-29 provides EXTERNAL_STATUS TOTAL_STATUS in Pseudo Table INFORMATION_SCHEMA.DATABASES to monitor database modifcation status.

If you run HXTT Access with other MS Access applications, and want to know whether the content has been modifed after you load it. You can use
SELECT * FROM INFORMATION_SCHEMA.DATABASES;/*When your jdbc url is a database*/
SELECT * FROM INFORMATION_SCHEMA.DATABASES where TABLE_CATALOG='test.accdb' /* When your jdbc url is a directory or zip file */
Through comparing the MD5 difference between two same queries, you can know whether that file has been modifed by external program, or your program.
EXTERNAL_STATUS column: a modification md5 which exclude your current modifcation.
TOTAL_STATUS column: a modification md5 which include all modifcations.

It should be availabe after about 4 hours.
Re:Re:Get notification when database changes?
Patrick Konemann
2017-06-29 07:53:02.0
Great, thank you! I'll test it as soon as possible.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 1999-2017 Heng Xing Tian Tai Lab of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap