Re: Funky Error during select.
Ok, this might have something to do with it. not sure.
Thinking my problem might be related to the Fill() statement I decided to included the table name during the fill even thow I am requesting data from a single table like so...
MySqlDataAdapter da = new MySqlDataAdapter( Query, this.OpenConnection() );
try
{
_DataTable.Clear();
da.Fill( _DataTable,"plant_history" );
}
catch( Exception ex )
{
throw new Exception( ex.Message );
}
finally
{
this.CloseConnection();
da.Dispose();
}
return _DataTable;
If I include the "plant_history" in the fill() statement I get a complie error as follows:
C:\plant\plant32.cs(1048): The best overloaded method match for 'System.Data.Common.DbDataAdapter.Fill(System.Data.DataTable, System.Data.IDataReader)' has some invalid arguments
The error says it can't convert a string to System.Data.IDataReader.
Any ideas?
Subject
Written By
Posted
November 03, 2004 12:34PM
Re: Funky Error during select.
November 03, 2004 01:20PM
November 03, 2004 01:28PM
November 03, 2004 01:35PM
November 09, 2004 03:57PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.