This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes SPs returning multiple resultsets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "SPs returning multiple resultsets" Watch "SPs returning multiple resultsets" New topic
Author

SPs returning multiple resultsets

Lee Sha
Ranch Hand

Joined: Nov 02, 2007
Posts: 66
Hi,

My application uses a DB2 Stored proc from an another interfacing system for doing a search. The Stored proc returns two resultsets. Does anybody know how to traverse through both the resultsets and get the data.

Thanks,
Lee...


Never tired...
SCJP SCWCD INS21 INS22 INS23 Salesforce Dev401
Lee Sha
Ranch Hand

Joined: Nov 02, 2007
Posts: 66
I got it. I used getMoreResults() on statement object.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: SPs returning multiple resultsets
 
It's not a secret anymore!