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

Visual FoxPro column names are truncated
2007-01-16 10:42:55
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
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 © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap