G
Guest
Hi, could anyone help me?
When I want to access AS400 database i use some code like the following:
{
string strDataSource = "128.2.2.2";
string strDBUser = "dbUser";
string strDBPass = "dbPass";
OleDbConnection objConnection = new OleDbConnection
("Provider=IBMDA400.DataSource.1; Data Source=" + strDataSource
+ ";User Id=" + strDBUser + "; Password=" + strDBPass);
objConnection.Open();
string strSelectCommand = "SELECT * FROM collection.table";
OleDbDataAdapter objDataAdapter = new OleDbDataAdapter(strSelectCommand,
objConnection);
DataTable objDataTable = new DataTable();
objDataAdapter.Fill(objDataTable);
objConnection.Close();
}
Everything just goes fine till today...
Just because I need to get data from AS400 database and store each query
result as MSMQ entry. In order to acomplish this, I wrote one dll COM+ (to be
accessed by the Biztalk 2002) and when I go to the test, I got the following
error when I execute the " objConnection.Open();" command:
"No error information available E_NOINTERFACE(0x80004002)"
The only diference between the two dll's is that one is in COM+ and the
first one Isn't.
Someone knows if there's any issue between ADO.Net and COM+ ? Or COM+ with
OleDB?
Thanks in Advance.
Daniel Santana.
When I want to access AS400 database i use some code like the following:
{
string strDataSource = "128.2.2.2";
string strDBUser = "dbUser";
string strDBPass = "dbPass";
OleDbConnection objConnection = new OleDbConnection
("Provider=IBMDA400.DataSource.1; Data Source=" + strDataSource
+ ";User Id=" + strDBUser + "; Password=" + strDBPass);
objConnection.Open();
string strSelectCommand = "SELECT * FROM collection.table";
OleDbDataAdapter objDataAdapter = new OleDbDataAdapter(strSelectCommand,
objConnection);
DataTable objDataTable = new DataTable();
objDataAdapter.Fill(objDataTable);
objConnection.Close();
}
Everything just goes fine till today...
Just because I need to get data from AS400 database and store each query
result as MSMQ entry. In order to acomplish this, I wrote one dll COM+ (to be
accessed by the Biztalk 2002) and when I go to the test, I got the following
error when I execute the " objConnection.Open();" command:
"No error information available E_NOINTERFACE(0x80004002)"
The only diference between the two dll's is that one is in COM+ and the
first one Isn't.
Someone knows if there's any issue between ADO.Net and COM+ ? Or COM+ with
OleDB?
Thanks in Advance.
Daniel Santana.