Article View: comp.lang.java.databases
Article #34ResulSet.absolute() unsupported?
From: Roland Zumkeller
Date: Wed, 02 Aug 2000 00:00
Date: Wed, 02 Aug 2000 00:00
19 lines
1333 bytes
1333 bytes
Hi,
I'm having problems to do very simple things with a ResulSet: Moving the
cursor and asking it where it is.
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = DriverManager.getConnection("jdbc:odbc:myDb",
"sa", "");
Statement s = conn.createStatement();
ResultSet r = s.executeQuery("SELECT * FROM myTable");
r.absolute (1);
When executing this, I'm getting an "UnsupportedOperationException" on
the absoulte()-method. The same happens when I call getRow(). What am I
doing wrong? The Database is a MS SQL Server 7.0 and I'm pretty sure it
supports these things, because I've done them with Visual Basic before.
Thanks,
Roland
Technical Details
Message-ID:
<398880B2.D98B1AE7@web.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1073da,7d85a1dcaaab897e,start X-Google-Attributes: gid1073da,public X-Google-Thread: 107d46,7d85a1dcaaab897e,start X-Google-Attributes: gid107d46,public From: Roland Zumkeller <Roland.Zumkeller@web.de> Subject: ResulSet.absolute() unsupported? Date: 2000/08/02 Message-ID: <398880B2.D98B1AE7@web.de> X-Deja-AN: 653739875 Content-Transfer-Encoding: 7bit X-Accept-Language: de Content-Type: text/plain; charset=us-ascii X-Trace: fu-berlin.de 965247196 6477560 62.54.2.108 (16 [43476]) Mime-Version: 1.0 Newsgroups: comp.lang.java.databases,borland.public.jbuilder.database