database driver that allows scrollable result set

I attempted to create a scrollable result set with the following create statement.

s = c.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);

I received the following error at runtime.

java.sql.SQLException: [Microsoft][ODBC Visual FoxPro Driver]Driver not capable

Anyone know of a Foxpro driver that supports scrollable result sets or another solution to this problem.

Thanks,

Brian

[457 byte] By [BrianB24] at [2007-9-26 1:34:28]
# 1
One solution is to not use scrollable result sets.Since you didn't specify what you are doing with it, it is hard to say how you might do that.
jschell at 2007-6-29 2:17:38 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 2

Rather than trying to find a driver to do this, get the Rowset API from the JDC (Java Developer Connection).

Get it here:

http://developer.java.sun.com/developer/earlyAccess/crs

The JavaDocs are well detailed; essentially you populate a CachedRowSet which acts as a wrapper around your ResultSet. The CRS gives you the power to scroll, update, serialize, etc.

Enjoy

Justoon

justoon at 2007-6-29 2:17:38 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 3
THANKS!
BrianB24 at 2007-6-29 2:17:38 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...
# 4

I don't know if you just mistyped your original question, but to create a scrollable resultset you have to give it a the statement constructor a ResultSet.TYPE_SCROLL_INSENSITIVE parameter:

s = c.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_UPDATABLE);

maybe your driver does not support ResultSet.CONCUR_UPDATABLE?

Jamie

jlrober at 2007-6-29 2:17:38 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...