Main   Products   Offshore Outsourcing   Customers   Partners   ContactUs  
JDBC Databases
  HXTT Access v5.2
 
  Buy Now
  Support
  Download
  Document
  FAQ
  HXTT Cobol v2.1
  HXTT DBF v5.2
  HXTT Excel v4.2
  HXTT Paradox v5.2
  HXTT Text(CSV) v5.2
  HXTT XML v1.2
Offshore Outsourcing
Oracle Data Import/Export
DB2 Data Import/Export
Sybase Data Import/Export
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
   
   
   
Hongxin Technology & Trade Ltd. of Xiangtan City (abbr, HXTT)

HXTT ACCESS
COLUMN_SIZE
eziodef@libero.it
2007-04-16 05:30:08.0
If I have create the table:
CREATE TABLE T1 (A VARCHAR(10))
I recive the column_size = 20;
DatabaseMetaData dmd = v.fromDB.getMetaData();
ResultSet rs = dmd.getColumns(catalog,null,v.fromDBTable,null);
while(rs.next()){
String column_size = rs.getString("COLUMN_SIZE");
}
This incoherence is only for the ACCESS driver, for DBF or PARADOX the size recived is the sames of the size created.
I can configure the driver to solve this problem?
Re:COLUMN_SIZE
HXTT Support
2007-04-16 08:11:46.0
For MS Access 95 and 97(JET3), you will get column_size = 10; A VARCHAR(10)) can store at most 10 ASCII character.
For MS Access 2000, or 2003 (JET4), you will get column_size = 20; because those database has choose unicode character. Because JET4 can use compressed method for string too, a VARCHAR(10)) can store at most 18 Unicode character sometimes.

Re:Re:COLUMN_SIZE
HXTT Support
2007-04-16 08:20:30.0
>I can configure the driver to solve this problem?
If that mdb file is created by you, you can use versionNumber=JET3 to create it.
For JET4, we can't let column_size return 10 because 10 ASCII character column of other databases can't store 10 UNICODE characters column in database migration.

Search Key   Search by Last 50 Questions




Google
 

Address: 9 Station Rd., Xiangtan City, Hunan Province, P.R. China
Postcode: 411100
Phone: (86)731-58225727
Fax: (86)731-58225727
Email: webmaster@hxtt.com
Copyright © 1999-2011 Hongxin Technology & Trade Ltd. | All Rights Reserved. | Privacy | Legal | Sitemap