Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / May 2005

Tip: Looking for answers? Try searching our database.

DataAdapter and multiple result sets

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael C# - 10 May 2005 18:22 GMT
I have a SQL Server stored procedure that returns multiple recordsets (three
of them), in the same way that sp_helpdb does (try entering EXEC SP_HELPDB
'MASTER' in Query Analyzer for an example).  I want to populate my DataSet
with all three recordsets, as System.Data.DataTables.  I'm not sure how to
move to the second and third resultsets in this case.  Normally, with an
DataReader I would use the .NextResult method, but I'm trying to avoid the
DataReader and just use the DataAdapter's Fill method.  Is this possible?

Thanks in advance
Yunus Emre ALPÖZEN [MCAD.NET] - 10 May 2005 18:33 GMT
Use a dataset and fill dataset with data adapter. All result sets will be
placed in different data tables.

Signature

Thanks,
Yunus Emre ALPÖZEN
BSc, MCAD.NET

>I have a SQL Server stored procedure that returns multiple recordsets
>(three of them), in the same way that sp_helpdb does (try entering EXEC
[quoted text clipped - 6 lines]
>
> Thanks in advance
Michael C# - 10 May 2005 19:05 GMT
Thank you.  I was doing that, but there was an error in the parameters I was
passing so the results were garbage - that's why it wasn't working.  It's
all good now though.  Thanks again!

> Use a dataset and fill dataset with data adapter. All result sets will be
> placed in different data tables.
[quoted text clipped - 9 lines]
>>
>> Thanks in advance

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.