943,959 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 953
  • Java RSS
Jan 19th, 2009
0

about rs.last

Expand Post »
Java Syntax (Toggle Plain Text)
  1. stm =con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
  2. rs=stm.executeQuery(qry);
  3. rs.last();
  4. String s=rs.getString(1);

I have backend as sybase.
But above code is throwing an error as follows:

Java Syntax (Toggle Plain Text)
  1. Error [Sybase][ODBC Driver][Adaptive Server Enterprise]HEADERFORMAT1 not found. Specify owner.objectname or use sp_help to check whether the object exists (sp_help may produce lots of output)
Reputation Points: 9
Solved Threads: 0
Light Poster
srs_grp is offline Offline
34 posts
since Sep 2008
Jan 19th, 2009
0

Re: about rs.last

First we need what is in your "qry" variable.
Also if you want is use features like rs.last() etc, then I recommend you use a scroll insensitive resultset.
Last edited by stephen84s; Jan 19th, 2009 at 8:12 am.
Featured Poster
Reputation Points: 653
Solved Threads: 151
Nearly a Posting Virtuoso
stephen84s is offline Offline
1,316 posts
since Jul 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: New Jave Student needs a little guidance
Next Thread in Java Forum Timeline: returing the current year





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC