Showing different exceptions for different ResultSetTypes?

For the code below, I am getting different exceptions for different ResultSet types.

ResultSet rs = stmt.executeQuery("Select * from usermaster");

rs.absolute(3);

rs.updateString("emailID", "newID");

rs.updateRow();

*****

For ResultSet -> ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY, I am getting following exception

java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Invalid attribute/option identifier

at sun.jdbc.odbc.JdbcOdbcResultSet.setPos(JdbcOdbcResultSet.java:5017)

at sun.jdbc.odbc.JdbcOdbcResultSet.updateRow(JdbcOdbcResultSet.java:4009)

at DBConnector.<init>(DBConnector.java:56)

******

For ResultSet -> ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE, I am getting following exception

java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]String data, right truncation

at sun.jdbc.odbc.JdbcOdbcResultSet.setPos(JdbcOdbcResultSet.java:5017)

at sun.jdbc.odbc.JdbcOdbcResultSet.updateRow(JdbcOdbcResultSet.java:4009)

at DBConnector.<init>(DBConnector.java:56)

******

I am using SQL Server 2000, and JDK1.4 beta.

I am not able to identify what is going wrong here? Please help

[1279 byte] By [Thejas] at [2007-9-26 1:14:39]
# 1
ResultSet.absolute(int) is a JDBC 2.0 function,currently most JDBC-ODBC driver only support jdbc 1.1,check your jdbc driver.It is so common why there is no compilation error, but throw exception in Production.Rex
rexwkk at 2007-6-29 0:32:12 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2

> ResultSet.absolute(int) is a JDBC 2.0 function,

> currently most JDBC-ODBC driver only support jdbc

> 1.1,

> check your jdbc driver.

> It is so common why there is no compilation error, but

> throw exception in Production.

>

> Rex

I have JDBC2.0

Thejas at 2007-6-29 0:32:12 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
check to see if your driver is JDBC 2.0 compliant too. Just because you have JDBC 2.0 installed doesn't mean that your driver fully implements the 2.0 standardJamie
jlrober at 2007-6-29 0:32:12 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...