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