Gladimir
Well-known member
When I try to fill a dataset table using the SELECT statement listed below, I get the following error:
Here is the relevant code:
Obviously, the error occurs when I attempt to use the Fill method of the assetAdapter.
The dataset ds1 definitely exists, and in fact, there is a line of code calling the Fill method of another DataAdapter just above the assetAdapter.
Any help is greatly appreciated.
Code:
Unspecified error: E_FAIL(0x80004005)
Here is the relevant code:
C#:
string strSelectA = null;
strSelectA = "SELECT ComputerName, Domain FROM REF_CSDComputers " +
"WHERE (Billable=" + true.ToString() + ")";
OleDbDataAdapter assetAdapter = new OleDbDataAdapter(strSelectA, master);
try
{
assetAdapter.Fill(ds1, "lookup");
}
finally
{
master.Close();
}
Obviously, the error occurs when I attempt to use the Fill method of the assetAdapter.
The dataset ds1 definitely exists, and in fact, there is a line of code calling the Fill method of another DataAdapter just above the assetAdapter.
Any help is greatly appreciated.