Re: Funky Error during select.
Posted by: Chris Cline
Date: November 03, 2004 01:20PM

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() );

da.Fill( _DataTable,"plant_history" );
catch( Exception ex )
throw new Exception( ex.Message );

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?

Options: ReplyQuote

Written By
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

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.