G
Guest
Hi,
I know there are a couple of other posts regarding this matter, but I am
using the simplest of statements, yet the get the above error. My code looks
like this:
OleDbCommand cmd = new OleDbCommand ("SELECT Name FROM Employees", Conn);
conn.Open();
OleDbDataReader dr = cmd.ExecuteReader();
It falls over on the ExecuteReader with the above error (I have the actual
code in a try catch block, calling the Read method of dr).
As I am not specifying any parameters, can anyone tell me what the problem
might be?
I know there are a couple of other posts regarding this matter, but I am
using the simplest of statements, yet the get the above error. My code looks
like this:
OleDbCommand cmd = new OleDbCommand ("SELECT Name FROM Employees", Conn);
conn.Open();
OleDbDataReader dr = cmd.ExecuteReader();
It falls over on the ExecuteReader with the above error (I have the actual
code in a try catch block, calling the Read method of dr).
As I am not specifying any parameters, can anyone tell me what the problem
might be?