all groups > dotnet xml > november 2003 >
You're in the

dotnet xml

group:

How to get Multiple Recordsets from StoredProc?


How to get Multiple Recordsets from StoredProc? Keith Chadwick
11/27/2003 11:14:54 AM
dotnet xml:
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

Re: How to get Multiple Recordsets from StoredProc? Keith Chadwick
11/27/2003 3:19:20 PM
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

[quoted text, click to view]

Re: How to get Multiple Recordsets from StoredProc? Dimitre Novatchev
11/27/2003 8:56:10 PM
How is this question related to xml???


[quoted text, click to view]

AddThis Social Bookmark Button