A
Antoni Massó Mola
Hello, I dont understand whats going on with my DB2 connector. I used to
have the code in a class that worked fine. But when I tried to use it in a
webservice I get this error: System.InvalidOperationException:
ExecuteReader: Connection property has not been initialized.
1) I create and open a new OleDbConnection
adoConn adoConn = new adoConn();
adoConn.Run("INTRANET");
2) I execute the query
OleDbDataReader myReader = adoConn.dbSQLSelect("Select * from USERS");
ERROR
Line 47: myReader = myCommand.ExecuteReader();
What might be the problem?
have the code in a class that worked fine. But when I tried to use it in a
webservice I get this error: System.InvalidOperationException:
ExecuteReader: Connection property has not been initialized.
1) I create and open a new OleDbConnection
adoConn adoConn = new adoConn();
adoConn.Run("INTRANET");
2) I execute the query
OleDbDataReader myReader = adoConn.dbSQLSelect("Select * from USERS");
ERROR
Line 47: myReader = myCommand.ExecuteReader();
What might be the problem?