Darksnake's correct - you need to read a row before you can access the data. Quite a common thing you might want to do is go through all the rows like so:


while(reader.HasRows())
{
...