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
Index Folder
Omar Cornejo
2006-04-21 11:53:07
I'm using your product to update my tables and indexes with very good results, i'm very satisfied.

But in the migration proccess, because it was too fast, i have to make 2 changes to the original application:

1. Make the dbf's and ntx's files exists in the same directory. Before i had the estructure data\dbf\*.dbf and data\ntx\*.ntx. I would like to return to the previous directory estructure, for maintenance reasons. I have many dbf's and many more ntx's.

2. Some indexes, in the past, where created using the "DESCENDING" command. But that indexes have not been updated by your product until i have changed it to "ASCENDING" (or not ordinal directive). Is there a way to update indexes created with the "DESCENDING" directive?.

Thanks, and best regards
Re:Index Folder
HXTT Support
2006-04-22 04:07:47
>2. Some indexes, in the past, where created using the "DESCENDING" command.
> But that indexes have not been updated by your product
Supported in the latest package.

>Before i had the estructure data\dbf\*.dbf and data\ntx\*.ntx. I would like
> to return to the previous directory estructure, for maintenance reasons. I
> have many dbf's and many more ntx's.
You need some cgp files to tell HXTT DBF where to find your ntx files.
1st solution (only for the latest package):
try {
File dataDir=new File("/data/dbf");
File[] fileLists=dataDir.listFiles();
for(int i=0;i if(fileLists[i].isFile() && fileLists[i].getName().toUpperCase().endsWith(".DBF")){
String ntxPath="../ntx/"+fileLists[i].getName().substring(0,fileLists[i].getName().length()-3)+"NTX";
File ntxFile=new File(dataDir,ntxPath);
if(ntxFile.isFile()){
com.hxtt.sql.dbf.OpenAPI.addIndexInfoToCGP(dataDir.getPath(),fileLists[i].getName(),ntxPath);
}
}
}

}
catch (Exception e) {
System.out.println(e.getMessage());
e.printStackTrace();
}

2nd solution:
try {
File dataDir=new File("/data/dbf");
File[] fileLists=dataDir.listFiles();
for(int i=0;i if(fileLists[i].isFile() && fileLists[i].getName().toUpperCase().endsWith(".DBF")){
String tableName=fileLists[i].getName().substring(0,fileLists[i].getName().length()-4);
String ntxPath="../ntx/"+tableName+".NTX";
File ntxFile=new File(dataDir,ntxPath);
if(ntxFile.isFile()){
File cgpFile=new File(dataDir,tableName+".CGP");
PrintStream ps=new PrintStream(new FileOutputStream(cgpFile,true));
ps.println(ntxPath);
ps.close();
}
}
}

}
catch (Exception e) {
System.out.println(e.getMessage());
e.printStackTrace();
}


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