Searching a Table Column

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Using an SqlDataReader what is the best way to determine if a table column
has specified value?

Thanks, Justin.
 
If the column is of type of string use

if (!reader.IsDBNull(i) && (reader.GetString(i)=='myValue'))

Eliyahu
 
Back
Top