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)

Invalid column: bomId
Marcos Trejo
2006-01-26 00:00:00.0
I,m using the last trial version of the driver on a Mac OS X 10.3.9, the database is MS Access 97. I,m getting the next exception:

java.sql.SQLException: Invalid column: bomId
at Source)
at Source)
at Source)
at Source)
at Source)
at com.hxtt.sql.a7.a(Unknown Source)
at com.hxtt.sql.a7.a(Unknown Source)
at com.hxtt.sql.y.a(Unknown Source)
at Source)

The SQL statement that produces this exception is:

PreparedStatement stm = conn.prepareStatement("SELECT MAX(bomId) FROM bom");
ResultSet rs = stm.executeQuery();

I've checked the database and the column bomId exists on that table. The application originally works with PostgreSQL and everything worked fine with the JDBC driver for that db. I'm moving to Access because our client requested.

Thanks in advance.
Re:Internet Software Systems Developer
HXTT Support
2006-01-26 00:00:00.0
It means that HXTT Access failed to find that column. You can try:
ResultSet rs = stmt.executeQuery(("SELECT top 1 * FROM bom");
ResultSetMetaData resultSetMetaData = rs.getMetaData();
int iNumCols = resultSetMetaData.getColumnCount();
for (int j = 1; j <= iNumCols; j++){
to print all column names, then you can find the true name of bomId column. If you think that true name of bomId is wrong, you can email your sampe mdb to .

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