Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  HXTT Cobol v3.0
  HXTT DBF v6.0
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Excel v5.0
  HXTT Paradox v6.0
  HXTT Text(CSV) v6.0
  HXTT XML v2.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 Ltd. of Beijing City (abbr, HXTT)

HXTT DBF
Index Folder
Omar Cornejo
2006-04-21 11:53:07.0
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.0
>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 © 1999-2017 Heng Xing Tian Tai Ltd. of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap