Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access 7.1.131
  HXTT Cobol 5.0.131
  HXTT DBF 7.1.132
  Buy Now
  HXTT Excel 6.1.135
  HXTT Json 1.0.103
  HXTT Paradox 7.1.131
  HXTT PDF 2.0.131
  HXTT Text(CSV) 7.1.131
  HXTT Word 1.1.131
  HXTT XML 4.0.132
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.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 © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Sitemap