Home > Archive > SQL Server JDBC > March 2006 > Re: getting Multiple resultsets in java using stored procedure in









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: getting Multiple resultsets in java using stored procedure in
Joe Weinstein

2006-03-05, 8:24 pm



subhash.daga@gmail.com wrote:

> You need to use executeQuery() method not execute(). So try something
> like this:
>
> ResultSet result = cStmt.executeQuery();
> if(result!=null) {
> ... do your stuff ...
> }


Nope. ExecuteQuery() by spec cannot return a null.
Joe

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com