kaushikmehta
Programmer
Hey there,
The issue i am facing is i am trying to make a JDBCODBC connection using a third party custom driver. This is the code i am using
con =DriverManager.getConnection("jdbcdbcS", "username", "password"
Statement stmt = con.createStatement();
Now this statement works fine in JDK 1.1.8 environment. But my development needs to happen in JDK 1.3.1 envirnment. But as soon as i put this code in that environment(JDK1.3.1) i get an error
SQLException: The result set type is not supported.
So i changed that code to say
Statement stmt = con.createStatement (ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
In this case it gives me an error
SQLException: The result set type is not supported.
So i changed the resultset type to
Statement stmt = con.createStatement(ResultSet.FETCH_UNKNOWN,ResultSet.CONCUR_READ_ONLY);
In this case the error i get is
SQLException: Invalid Cursor Type.
I do not know what to do and what resulttype to support. I will appreciate any help i can get.
Thanks in Advance
Kaushik Mehta
The issue i am facing is i am trying to make a JDBCODBC connection using a third party custom driver. This is the code i am using
con =DriverManager.getConnection("jdbcdbcS", "username", "password"
Statement stmt = con.createStatement();
Now this statement works fine in JDK 1.1.8 environment. But my development needs to happen in JDK 1.3.1 envirnment. But as soon as i put this code in that environment(JDK1.3.1) i get an error
SQLException: The result set type is not supported.
So i changed that code to say
Statement stmt = con.createStatement (ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
In this case it gives me an error
SQLException: The result set type is not supported.
So i changed the resultset type to
Statement stmt = con.createStatement(ResultSet.FETCH_UNKNOWN,ResultSet.CONCUR_READ_ONLY);
In this case the error i get is
SQLException: Invalid Cursor Type.
I do not know what to do and what resulttype to support. I will appreciate any help i can get.
Thanks in Advance
Kaushik Mehta