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 / .NET Framework / XML / November 2003

Tip: Looking for answers? Try searching our database.

How to get Multiple Recordsets from StoredProc?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Keith Chadwick - 27 Nov 2003 16:14 GMT
I prefer to use stored procedures over having sql statements sitting in my
.NET code.

My problem is I can not figure out how get .NET to understand there are
multiple recordsets coming back.  Each of the recordsets is returning xml
data and if called individually would be called as :

Dim myCmd as SqlCommand=New SqlCommand("ae_RegGetShow",myCnct)
myDataSet.ReadXml(myCmd.ExecuteXmlReader(), XmlReadMode.Fragment)

The stored procedure has something like the following

selet * from table1 as show for xml auto,xmldata
select * from table2 as options for xml,xmldata

Any thoughts or suggest?

Cheers
Keith
Dimitre Novatchev - 27 Nov 2003 19:56 GMT
How is this question related to xml???

> I prefer to use stored procedures over having sql statements sitting in my
> .NET code.
[quoted text clipped - 15 lines]
> Cheers
> Keith
Keith Chadwick - 27 Nov 2003 20:19 GMT
Because I am using the ExecuteXMLReader and ReadXml on the dataset object.
Also the sql statements in the sp are for xml auto,XMLDATA.

Keith

> How is this question related to xml???
>
[quoted text clipped - 17 lines]
> > Cheers
> > Keith

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.