The java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]The specified SQL type is not supported by this driver is returned from JDBC Driver (DataDirect Connect JDBC, WebSphere embedded Connect JDBC or Microsoft SQL Server 2000 Driver) when an application uses something that is not supported by the JDBC Driver. The JDBC specification, Chapter 17 Customized Type Mapping, section 17.7 on "NULL Data" states:
|
Solution |
The following 3 setObject methods are available for use with the PreparedStatement object:
Using the second method setObject(int, Object, int) where the third parameter is the targetJDBCType works fine. For example:
|
JDBC规范-java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]The specified SQL type is not supported by this driver
最新推荐文章于 2024-06-20 09:43:59 发布