Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v7.1
  HXTT Cobol v5.0
  HXTT DBF v7.1
 
  Buy Now
  Support
  Download
  Document
  FAQ
  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 DBF
Confirm insert in dbf table
Sérgio Mordente
2021-12-29 15:20:29
Hi, I have lost some insert in DBF tables without autoincremet. How do I check if the insert was performed successfully? Should I do Select to verify?
Thanks
Re:Confirm insert in dbf table
HXTT Support
2021-12-29 17:22:25
>I have lost some insert in DBF tables without autoincremet.
If you're using concurrent insert with multi applications, you should use lockType=VFP (or other value) connection property.

If you're using transacotion mode, you should use Connection.commit to submit your inserted data, otherwise, it'll be rollback.

Anytime, __rowid__ can be used to get the record number, and reccount() function can return the total record count of that table.


Re:Re:Confirm insert in dbf table
Sérgio Mordente
2021-12-30 03:19:46
Thank you for the quick response.
I use Harbour simultaneously with Java 1.8 HXTT Driver.
The connection url is
if (System.getProperty("server").equals("ba")) {
url = "jdbc:dbf:////system/dbfg/?lockType=Harbour"; // Place
} else {
url = "jdbc:dbf:////dbfg_bahia/?lockType=Harbour"; // remote NFS
}

lockType=Harbour is correct?

Thank

Re:Re:Re:Confirm insert in dbf table
HXTT Support
2022-01-01 01:14:26
If your application is xHarbour, you can use lockType=VFP. You should check your index file suffix. You should use lockType=CLIPPER if you found *.ntx index files.

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