Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v5.0
  HXTT DBF v7.1
  HXTT Excel v6.1
  HXTT Json v1.0
  HXTT Paradox v7.1
  HXTT PDF v2.0
  HXTT Text(CSV) v7.1
  HXTT Word v1.1
  HXTT XML v4.0
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 Xi'an City (abbr, HXTT)

HXTT ACCESS
Get notification when database changes?
Patrick K��nemann
2017-06-29 00:12:03
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
>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
Great, thank you! I'll test it as soon as possible.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap