G
Guest
Hey
I am attempting to read data from a dBase IV database. After hours of struggling, I finally got my connection string working -- so I felt I was pretty well off. I was wrong
The problem I'm having is when I perform an ExecuteReader, I get back a ODBCDataReader, which is fine. I can call the Read() method on the DataReader and it will return true. But, when I attempt to pull items from the Reader (i.e. reader["LastName"]) I get an exception: System.IndexOutOfRangeException - LastName . If I walk through the DataReader using the position Index I get values returned to me, but when I try to access using the field name, I get the OutOfRangeException.
I haven't tried using a DataAdapter -- I would prefer not to have the extra overhead..
Any thoughts or answers are greatly appreciated
Thanks
-Kevin
I am attempting to read data from a dBase IV database. After hours of struggling, I finally got my connection string working -- so I felt I was pretty well off. I was wrong
The problem I'm having is when I perform an ExecuteReader, I get back a ODBCDataReader, which is fine. I can call the Read() method on the DataReader and it will return true. But, when I attempt to pull items from the Reader (i.e. reader["LastName"]) I get an exception: System.IndexOutOfRangeException - LastName . If I walk through the DataReader using the position Index I get values returned to me, but when I try to access using the field name, I get the OutOfRangeException.
I haven't tried using a DataAdapter -- I would prefer not to have the extra overhead..
Any thoughts or answers are greatly appreciated
Thanks
-Kevin