How can I get one field from a row from the DB?
I have a select query which brings me one row with one column.
How can I put this information in a String object?
Printable View
How can I get one field from a row from the DB?
I have a select query which brings me one row with one column.
How can I put this information in a String object?
use SqlDataReader to get results
and perform its Read method in a loop so that you get each row.
its .GetValue(index) should return the field value(column value)
Paresh