Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v6.0
  HXTT Cobol v3.0
  HXTT DBF v6.0
  Buy Now
  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)

Visual FoxPro column names are truncated
2007-01-16 10:42:55.0
I am trying to clone a Visual FoxPro database into a PostgreSQL database. However when I use the DatabaseMetadata from the HXTT JDBC driver the column names are truncated at 10 characters. How can I get the full column name? Here is a snippet of code:

String url = "jdbc:dbf:/c:/pathToDBC/";
Properties properties = new Properties();
properties.setProperty("lockType", "VFP");
properties.setProperty("versionNumber", "30");
properties.setProperty("OtherExtensions", "true");
properties.setProperty("MissingMemoFile", "ignore");
properties.setProperty("loadIndices", "false");
properties.setProperty("Default Index Suffix", "cdx");
cn = DriverManager.getConnection(url, properties);
metadata = cn.getMetaData();
String catalog = cn.getCatalog();
ResultSet rs = metadata.getColumns(catalog, null, tableName, null);
const int COLUMN_NAME = 4;
while (

For example: With a table containing a column called TOTEXTENDED I get a column name of TOTEXTENDE with this code.
Re:Visual FoxPro column names are truncated
HXTT Support
2007-01-17 09:06:00.0
The dbf database limit the column name to maxiumn 10 characters.

So it will truncate the column name to 10 characters.

Search Key   Search by Last 50 Questions


Copyright © 1999-2017 Heng Xing Tian Tai Ltd. of Beijing City. | All Rights Reserved. | Privacy | Legal | Sitemap