Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
  HXTT Cobol v2.1
  HXTT DBF v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT DBF
IDX vs. CDX
Kit
2013-04-29 06:03:24.0
I noticed that when I use your driver to create the tables, the files that are created are: .cgp, .dbf & .idx, but our existing database has .dbf & .cdx files.
I've read at: http://msdn.microsoft.com/en-us/library/xb5dh76z(v=vs.80).aspx
that:
"For a given table, Visual FoxPro stores primary and candidate indexes in the structural .cdx file associated with the table (.dbf) file. You cannot store primary and candidate indexes in other .cdx files, such as nonstructural .cdx files, nor is it possible to use standalone index (.idx) files for primary and candidate indexes because the index file should always open whenever the associated table is opened."
I believe this may be the reason that I'm struggling with writing to our existing tables.
Re:IDX vs. CDX
HXTT Support
2013-04-29 06:19:59.0
>but our existing database has .dbf & .cdx files.
If you wish to use CDX index, for instance, you can use
create index int1,char1 of test1.cdx on test (int1 unique ,char1+int1 for not empty(char1));
create index int1 of test.cdx on test (int1 ASC);
CREATE [UNIQUE] INDEX [IF NOT EXISTS] indexName[(keylength)][,...] [OF indexFileName] ON tableName (expression [UNIQUE] [PRIMARY KEY] [ASC|DESC] [FOR expression][,...])

>I believe this may be the reason that I'm struggling with writing to our existing tables.
If there's other Xbase application is using the same table, that application can't see the IDX index, because in Xabse applicaation, it need set index to anIndexFileName to use that index.

>.cgp
CGP file is a text file which used to maintain nonstructural index file Information. If you used only structural .cdx file associated with the table (.dbf) file, you needn't it. HXTT DBF can load automatically structural .cdx file.





Re:IDX vs. CDX
HXTT Support
2013-04-29 06:20:22.0
What's your issue for your existing tables?
Re:Re:Re:IDX vs. CDX
Kit
2013-04-30 07:52:17.0
Thank you for your help.
The problem was on our end. We have it fixed now.
Re:Re:Re:Re:IDX vs. CDX
HXTT Support
2013-04-30 07:56:18.0
BTW, if your old Foxpro application is modifing your existing tables, you need lockType=FOXPRO connection property to let HXTT DBF and Foxpro application can see each other.

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap