Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

the requested operation is not supported on forward only resultset.

$
0
0

I have created an interface in java which is connected with SQL server 2008 r2. When I press the Next and Previous button it navigates the record successfully. But when I search a particular record in database and then click the Next or Previous button it not show the Next of Previous data please guide me where might be the problem. I wrote the following code to prepare a query. 

pst=con.prepareStatement(sql,ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);

        rs=pst.executeQuery();

thanks in advance 


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>