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

DatabaseMetaData.getTable stopped working in 1.1.032 on May 08, 2006
Andrei Postolache
2006-05-08 02:28:37.0

The class below works with 1.1.017 on April 07, 2006 eval version but does not work with 1.1.032 on May 08, 2006, the full version.
By "works" I mean it prints out the names of all the tables in that database (better said, the result set returned by getTable contains rows)

Any help would be great.


import java.sql.*;

* ShahAmit (@auther :
public class TestClass {
public static void main(String[] args) {
String connectionURL = "jdbc:access:/" +

try {
} catch (ClassNotFoundException e) {

try {
Connection connection = DriverManager.getConnection(connectionURL);
if (connection != null) {
DatabaseMetaData databaseMetaData = connection.getMetaData();
if (databaseMetaData != null) {
ResultSet resultSet = databaseMetaData.getTables(null, null, null, null);

// ResultSet resultSet = connection.createStatement().executeQuery(
// "SELECT * FROM MsysObjects WHERE (Left([Name],1)<>'~') AND (lcase(Left([Name],4)) <> 'msys') AND (MSysObjects.Type)=1 order by MSysObjects.Name");
while ( {
System.out.println("Table Name : " + resultSet.getString(3));
} else {
System.out.println("Meta Data is null");
} else {
System.out.println("Connection is null");
} catch (SQLException e) {
Re:DatabaseMetaData.getTable stopped working in 1.1.032 on May 08, 2006
HXTT Support
2006-05-08 06:13:08.0
Fixed a new bug in DatabaseMetaData.getTables() since v1.1.028. When we complemented support for simple stored procedures (select, insert, update, and delete), we added such a bug too:( Thanks for your response. Please download the latest package.
Re:Re:DatabaseMetaData.getTable stopped working in 1.1.032 on May 08, 2006
Andrei Postolache
2006-05-10 07:02:13.0
Thx for the quick response. It's working now.


Search Key   Search by Last 50 Questions


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