M
Mattyw
Hi
I have a sqlcommand that returns all the rows in a column and then pass
that to a datareader.
I am new to VS.Net and so far I can only return the first row in the
first column using
label1.text = reader(0).tostring
I know that this returns the column and that (1) would read the next
one...what I need to be ablet to do is read all the "rows" that are
returned in the query but to a string so I can use the results in
another query.
so far I have:
oraconnection.Open()
Dim reader2 As OracleClient.OracleDataReader
reader2 = oracommand.ExecuteReader()
reader2.Read()
Label1.Text = reader2(0).ToString
oraconnection.Close()
This returns the first row and sends it to the label1.text, how would I
get the next row?, I need to end up with a string with all the rows in
from that query....not just the first??
Thanks in Advance
Matt.
I have a sqlcommand that returns all the rows in a column and then pass
that to a datareader.
I am new to VS.Net and so far I can only return the first row in the
first column using
label1.text = reader(0).tostring
I know that this returns the column and that (1) would read the next
one...what I need to be ablet to do is read all the "rows" that are
returned in the query but to a string so I can use the results in
another query.
so far I have:
oraconnection.Open()
Dim reader2 As OracleClient.OracleDataReader
reader2 = oracommand.ExecuteReader()
reader2.Read()
Label1.Text = reader2(0).ToString
oraconnection.Close()
This returns the first row and sends it to the label1.text, how would I
get the next row?, I need to end up with a string with all the rows in
from that query....not just the first??
Thanks in Advance
Matt.