G
Guest
Is there any way to use GetValue on a sqldatareader.Read() by specifying
column names instead of column numbers (or another method)?
column names instead of column numbers (or another method)?
William F. Robertson said:I think you are looking for...
SqlDataReader reader;
....
if ( reader.Read() )
object value = reader["Column1"];
object value2 = reader["Column2"];
or VB style ( I think)
dim value as object = reader("Column1")
dim value2 as object = reader("Column2")
HTH,
bill
louise raisbeck said:Is there any way to use GetValue on a sqldatareader.Read() by specifying
column names instead of column numbers (or another method)?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.