problem in randomly fetching data from mssql databse using scrollable resultset
From: Praveen homkar via JavaKB.com (forum_at_JavaKB.com)
Date: 03/14/05
- Next message: joeNOSPAM_at_BEA.com: "Re: Problem while iterating data through while(rs.next())"
- Previous message: Silvio Bierman: "Re: JDBC and ResultSet problem"
- Next in thread: joeNOSPAM_at_BEA.com: "Re: problem in randomly fetching data from mssql databse using scrollable resultset"
- Reply: joeNOSPAM_at_BEA.com: "Re: problem in randomly fetching data from mssql databse using scrollable resultset"
- Reply: Praveen homkar via JavaKB.com: "Re: problem in randomly fetching data from mssql databse using scrollable result"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 14 Mar 2005 14:39:16 GMT
Hi all
i have a gui based application which conects a MSSQL-server 2000.
I have buttons such as first-previous-next-last buttons to navigate
throught the database. I am using scrollable resultset
st=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_UPDATABLE);
i want to fetch a particualr row based on the primary key passed.
i am incrementing a number whenever user presses next button.
I am using rs.absolute();
but its giving invalid cursor state error.
Please help me with some code that allows fast and random navigation
i am using type 1 driver(jdbc-odbc) bridge)
-- Message posted via http://www.javakb.com
- Next message: joeNOSPAM_at_BEA.com: "Re: Problem while iterating data through while(rs.next())"
- Previous message: Silvio Bierman: "Re: JDBC and ResultSet problem"
- Next in thread: joeNOSPAM_at_BEA.com: "Re: problem in randomly fetching data from mssql databse using scrollable resultset"
- Reply: joeNOSPAM_at_BEA.com: "Re: problem in randomly fetching data from mssql databse using scrollable resultset"
- Reply: Praveen homkar via JavaKB.com: "Re: problem in randomly fetching data from mssql databse using scrollable result"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]