J
Jon Paal
I have a dataset created from an xml file
how can I create a datareader (dataview ?) ?? to return sql results
===========
Dim ds As New DataSet()
Dim sr As New StringReader(my_xmlData)
ds.ReadXml(sr)
'query the dataset
'----------------------------
Dim sql As string = "Select [bla bla] From [bla bla] Where [bla bla]"
'
' ------what goes here to create datareader (dataview ?) ???????
'
'check for existence of records
'-------------------------------------------
Dim dr As System.Object
dr= myCommand.ExecuteReader()
if dr.HasRows then
While dr.read
'retrieve data
'bla bla bla.....
End While
end if
how can I create a datareader (dataview ?) ?? to return sql results
===========
Dim ds As New DataSet()
Dim sr As New StringReader(my_xmlData)
ds.ReadXml(sr)
'query the dataset
'----------------------------
Dim sql As string = "Select [bla bla] From [bla bla] Where [bla bla]"
'
' ------what goes here to create datareader (dataview ?) ???????
'
'check for existence of records
'-------------------------------------------
Dim dr As System.Object
dr= myCommand.ExecuteReader()
if dr.HasRows then
While dr.read
'retrieve data
'bla bla bla.....
End While
end if