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

HXTT ACCESS
ResultSetMetaData does not return proper scale/decimal digits
Lohmar ASHAR
2010-03-25 07:54:45
Hi I'm trying to build the table definition(the create table sql command) for tables from an MS Access db,
I'm getting the java.sql.Connection
con = DriverManager.getConnection(....);
and tried
resultSet = con.getMetaData().getColumns(...);
and also
stmt = con.createStatement();
stmt.execute("SELECT * FROM [" + tableName + "] where 1<>1;");
resultSet = stmt.getResultSet();
ResultSetMetaData meta = resultSet.getMetaData();
...

but in both cases when I try to get the "scale"/decimal_digits ... it's not returning the proper values

does your driver provide this, and I didn't use it properly ?
i use Access_JDBC30.jar and the db is made with MS Access 2003, my OS is Windows 7.
Can you tell me how can I find the scale properly ?
Re:ResultSetMetaData does not return proper scale/decimal digits
HXTT Support
2010-03-29 02:15:40
Supported. Please downloasd the latest package.

Search Key   Search by Last 50 Questions




Google
 

Email: webmaster@hxtt.com
Copyright © 2003-2019 Heng Xing Tian Tai Lab of Xi'an City. | All Rights Reserved. | Privacy | Legal | Refund | Sitemap