G Guest Dec 13, 2004 #1 Using an SqlDataReader what is the best way to determine if a table column has specified value? Thanks, Justin.
Using an SqlDataReader what is the best way to determine if a table column has specified value? Thanks, Justin.
E Eliyahu Goldin Dec 14, 2004 #3 If the column is of type of string use if (!reader.IsDBNull(i) && (reader.GetString(i)=='myValue')) Eliyahu
If the column is of type of string use if (!reader.IsDBNull(i) && (reader.GetString(i)=='myValue')) Eliyahu
G Guest Dec 14, 2004 #4 What is i representing? Eliyahu Goldin said: If the column is of type of string use if (!reader.IsDBNull(i) && (reader.GetString(i)=='myValue')) Eliyahu Click to expand...
What is i representing? Eliyahu Goldin said: If the column is of type of string use if (!reader.IsDBNull(i) && (reader.GetString(i)=='myValue')) Eliyahu Click to expand...
E Eliyahu Goldin Dec 15, 2004 #5 the column index, starting from 0. -- Eliyahu Justin said: What is i representing? Click to expand...
the column index, starting from 0. -- Eliyahu Justin said: What is i representing? Click to expand...