Handling multiple result sets

A

aussie rules

Hi,

I have a stored procedure that returns (in the one vb call) two sets of
data( ie the stored procedure does two select statements, and when run in an
isql session, to separate result tables are displayed).

Is it possible to handle these two results within a single call to the sql
server, as I do not want to have to do a second return trip to the server

Thanks.

Thanks
 
G

Guest

With a DataSet, the two result sets become two DataTables. If you use
TableMappings, you can give these tables real names. Otherwise, they are
Table and Table1.

With a DataReader, use NextResult to get to the next result set (much like
Next on a Recordset object in ADO).


---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top