Hi
 Put the code to access data from resultset into a condition (if condition)
ie
 if (rs.next())
{
   // your code to access recordset values
   ----
   ---
}

hope this will work

Sanjay


----- Original Message -----
From: Pavan Sulibhavi <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 26, 2000 9:41 AM
Subject: JDBC-ODBC


> Hi,
> I'm getting the invalid cursor state error message (SQLException). well,
> this is because the returned ResultSet contains no data, and i'm trying to
> access it. How to find out whether the ResultSet  returned by method -
> executeQuery(query) contains any data at all ??
>
> PLEASE reply as soon as possible..
>
> thanks a lot!
> Pavan
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to