how do you check for no rows returned after ExecuteNonQuery for SELECT sql statement returns no rows??
Use the ExecuteReader method instead. This returns a SqlDataReader, which has a HasRows property.
ExecuteReader
SqlDataReader
HasRows
ExecuteNonQuery shouldn't be used for SELECT statements.
ExecuteNonQuery
SELECT