V
VB Programmer
I have a DataReader. How can I get the value of a column in the current
"row" if I have only the NAME of the column, not it's ordinal value?
If I knew the ordinal value of the column I could just go:
MyDataReader.GetValue(2)
But, this is invalid:
MyDataReader.GetValue("CustomerName")
Thanks.
"row" if I have only the NAME of the column, not it's ordinal value?
If I knew the ordinal value of the column I could just go:
MyDataReader.GetValue(2)
But, this is invalid:
MyDataReader.GetValue("CustomerName")
Thanks.