Your SQL syntax is wrong for MS Access. The LONGVARCHAR is not recognised by
Access, and neither is LONGVARBINARY.
Remember all that, basically, JDBC does with SQL statements is pass them
straight through to the database engine where it is validated and
interpreted.
I'd suggest that you MEMO instead of LONGVARCHAR and IMAGE instead of
LONGVARBINARY.
Test the query out in Access to ensure that it works OK before porting it to
the Java/JDBC-ODBC environment.
> I'm getting the following error:
>
[quoted text clipped - 7 lines]
> at sun.jdbc.odbc.JdbcOdbc.SQLPrepare(JdbcOdbc.java:4784)
> at
sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement(JdbcOdbcConnection.java:47
5)
> at
sun.jdbc.odbc.JdbcOdbcConnection.prepareStatement(JdbcOdbcConnection.java:44
3)
> Any ideas? I imagine that Access does like LONGVARBINARY, even though
> the driver tells me that this column is that SQL type when viewing the
> database.metadata getColumns()..
>
> Thanks in advance, Ian