This question doesn't really answer a question of mine I've been pondering about for a while even if it's close. What's the difference between
While reader.Read()
End While
and
If reader.HasRows Then
End If
and under which circumstances should either of them be applied? Am I wrong when I assume they both execute if there are any records found in the datareader?